Newbie Spellweaver
- Joined
- Jan 15, 2007
- Messages
- 62
- Reaction score
- 0
Hey guys I decided to do it the much easier way since I'm having problems hosting it from my pc.
I uploaded all the files to a host, and then did all the mysql and cron crap.
Now I open socket.php because I am having problems connecting, in socket.php it says "Listening on port 10026
Warning: socket_bind() [function.socket-bind]: unable to bind address [98]: Address already in use in /home/theorys2/public_html/socket.php on line 179
AIEE -- Couldn't bind!"
This is the part of socket.php it says is causing the problem (it's the second part where it says AIEE -- Couldn't bind!) I couldn't really figure out what was wrong with it >_>
Any help?
I uploaded all the files to a host, and then did all the mysql and cron crap.
Now I open socket.php because I am having problems connecting, in socket.php it says "Listening on port 10026
Warning: socket_bind() [function.socket-bind]: unable to bind address [98]: Address already in use in /home/theorys2/public_html/socket.php on line 179
AIEE -- Couldn't bind!"
This is the part of socket.php it says is causing the problem (it's the second part where it says AIEE -- Couldn't bind!) I couldn't really figure out what was wrong with it >_>
Code:
//set servers ip here, leave if using a local host
//socket_setopt($listenfd, SOL_SOCKET, SO_REUSEADDR, 1); - old
if (!@socket_setopt($listenfd, SOL_SOCKET, SO_REUSEADDR, 0)) {
echo 'socket_setopt() failed: reason: '.socket_strerror(socket_last_error($listenfd));
exit;
}
if (!socket_bind($listenfd, '0.0.0.0', PORT)){
socket_close($listenfd);
die("AIEE -- Couldn't bind!");
}
Any help?