In article <(E-Mail Removed). com>,
(E-Mail Removed) wrote:
> The server is running on a non-multihomed machine (has only 1 ip) in
> such situation are there drawbacks of using the ip versus using
> INADDR_ANY?
>
> I mean if I used the ip then would I encounter any problems like not
> being able to receive certain type of requests...?
You won't be able to receive requests sent from the server machine to
"localhost", since this is 127.0.0.1. If you want to handle that as
well, open a second socket and bind it to this address.
You can also handle multihomed machines by looping through all the
interfaces and binding a socket to each one. This will get the
localhost address automatically, so you won't need to special-case it.
--
Barry Margolin,
(E-Mail Removed)
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***