IN6ADDR_ANY_INIT doesn't resolve to localhost?

  • Follow


Hi,

I am running my server on IN6ADDR_ANY_INIT. The socket() and bind()
calls succeed. As said earlier, I run the server on IN6ADDR_ANY_INIT.

However, if I try to connect my client using "localhost" for server,
connect returns with errno 128( Network is unreachable.). Same thing
happens if I use ::1 to connect. However if I give the IPv4 IP. The
connection succeeds.

The contents of /etc/inet/ipnodes and /etc/hosts are as shown below

# cat /etc/inet/ipnodes
::1             localhost
127.0.0.1       localhost

# cat /etc/hosts
127.0.0.1       localhost localhost

any clues on what might be wrong? thanks,


sug

0
Reply zamu23 (6) 3/26/2007 3:34:36 PM


0 Replies
476 Views

(page loaded in 0.029 seconds)

Similiar Articles:













7/22/2012 12:11:23 AM


Reply: