if (!@socket_bind($this->initFD, $this->domain, $this->port)) {
$error = $this->getLastSocketError($this->initFd);
@socket_close($this->initFD);
$this->_sendDebugMessage("Could not bind socket to ".$this->domain." on port ".$this->port." (".$error.").");
}
🔒 Locked
🤖 Godot
[web] PHP & Sockets
Advertisement
Original Post
Greetings, all! Lately I've been working on a script that will allow me to telnet into a php script I've got running....however it only seems to work locally. I'm pretty sure it's programmed right...I use my local IP for the host for the socket connection since that's the only one it seems to bind to, but then external connections can't seem to log in. Just a simple I've tried running it on this computer, i've tried running it on my linux box, i've even tried at work. This computer can connect to itself and the linux box (cuz they're on the same network) and the computers at work can connect to it as well when run from there...however if I tried to get a friend to connect to it, he couldn't. Either with my local ip or my world ip, it doesn't work. Any ideas? Thank you!
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement