Friday, August 5, 2011

Difference betweeen 0.0.0.0 and 255.255.255.255

0.0.0.0 represents "any address". If you bind a listening socket to 0.0.0.0, you're telling the OS to accept connections on any ip address that the host has network adapters bound to.

255.255.255.255 (INADDR_BROADCAST) is the broadcast address for your LAN segment.

No comments:

Post a Comment