Error binding stream socket to IP 0.0.0.0 port 6667

These are old archives. They are kept for historic purposes only.
Post Reply
Blackhawk
Posts: 5
Joined: Sat Feb 09, 2008 9:16 am
Location: The netherlands
Contact:

Error binding stream socket to IP 0.0.0.0 port 6667

Post by Blackhawk »

i have a error on my unrealircd
this is the error i get

Error binding stream socket to IP 0.0.0.0 port 6667 - irc.chatten4fun.eu[0.0.0.0.6667]:Can't assign requested address

i did change my ip :P
but what is wrong with my ircd no one can conect
i did have all acces into the router and firewall open
nate
Posts: 148
Joined: Fri Jul 29, 2005 10:12 am
Location: Johnstown, Pa
Contact:

Re: Error binding stream socket to IP 0.0.0.0 port 6667

Post by nate »

It sounds like something is already listening on 6667, make sure you aren't trying to run two IRCd's at once, as if one is already running, you can't bind to the same port on the same address.
typ0
Posts: 6
Joined: Thu Feb 07, 2008 2:13 am

Re: Error binding stream socket to IP 0.0.0.0 port 6667

Post by typ0 »

Explanation:

This normally results from an attempt to create a socket with an address not on this computer. The "address" it refers to is the remote socket name (protocol, port and address). This error occurs when the sin_port value is zero in a sockaddr_in structure for connect() or sendto(). This error also occurs when you are trying to name the local socket (assign local address and port number) with bind(), but Windows Sockets doesn't ascribe this error to bind().

User Action:

Assume bind() will fail with this error. Let the network system assign the default local IP address by referencing INADDR_ANY in the sin_addr field of a sockaddr_in structure input to bind(). Alternately, you can get the local IP address by calling gethostname() followed by gethostbyname().
Post Reply