[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #12168] Cannot retreive the local hostname

From: Carl-Adam Brengesjo
Subject: [Pnet-developers] [bugs #12168] Cannot retreive the local hostname
Date: Sat, 5 Mar 2005 05:57:39 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; sv-SE; rv:1.7.5) Gecko/20041108 Firefox/1.0

Update of bugs #12168 (project dotgnu-pnet):

                 Summary:             Bug in pnet => Cannot retreive the
local hostname


Follow-up Comment #3:

The return value from Dns.GetHostName() shouldn't be NULL, a SocketException
should be thrown. However, that's not the reason why it fails.

Dns.GetHostName() uses an internal call to fetch the hostname,  and these C
functions return null in two cases:
1) gethostname isn't defined on your system.
2) gethostname failed. See the man page gethostname(3).

I assume your system has a working glibc with gethostname defined... so is
there an error when calling gethostname?

What does "uname -n" tells you?


This item URL is:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]