I need the socket listen on all the addresses pointing my machine, i.e. loop back 127.0.0.1, local address 10.86.xxx.xxx. Is it possible?
thanks, it's what i need!
Todd
2010-07-29 10:56:27
+2
A:
When you bind
the socket, if you do not specify an address, it will listen on all. (And monitoring tools will show it listening on 0.0.0.0 (IPv4) or ::0 (IPv6).)
I.e. you need to specify an address to listen on that address, but not specifying an address will listen on all.
Richard
2010-07-29 08:35:28