default tcp host

Ray Strode halfline at gmail.com
Thu Jun 14 14:15:07 PDT 2007


Hi,

> We could explicitly call gethostname() to retrieve the local hosts'
> primary name & put that into the address in the INADDR_ANY scenario
> which is basically what X does for DISPLAY env IIRC.
That's a bad idea because gethostname() returns what the host calls
itself, not necessarily what others call the host.  The two match
sometimes, but they are different things, and they don't always match.

Also, think about the hostname, "localhost" ...

--Ray


More information about the dbus mailing list