Very peculiar problem with GetHostByAddress on W98

G

Guest

I don't suppose anyone will be able to help with this, it's most odd. I use
IPHostEntry hostInfo = GetHostByAddress(ipAddress)
to resolve an IP address to a name (in this case it is actually the local
computer, if that's relevant). The call is made on several occasions as the
program runs, the first two times it works fine, then, for no reason, instead
of the name it returns the IP address in hostInfo.HostName. This program has
been working fine for months, and suddenly started doing this, but only on
W98. Al wild guesses as to the cause would be gratefully received
 
T

Tom Spink

Dave said:
I don't suppose anyone will be able to help with this, it's most odd. I
use IPHostEntry hostInfo = GetHostByAddress(ipAddress)
to resolve an IP address to a name (in this case it is actually the local
computer, if that's relevant). The call is made on several occasions as
the program runs, the first two times it works fine, then, for no reason,
instead of the name it returns the IP address in hostInfo.HostName. This
program has been working fine for months, and suddenly started doing this,
but only on W98. Al wild guesses as to the cause would be gratefully
received

Hi Dave,

Do you have a DNS server on your network? Do you use DHCP?

<WildSpeculation>
Perhaps your DHCP server has stopped assigning the address of your DNS
server to your interface card.
</WildSpeculation>

;-)
-- Tom Spink
 
G

Guest

No I don't have a DNS server, although I do have DHCP as supplied by a
Netgear router. Also, the problem mysteriously disappeared again this
morning, and then came back on one of my two 98 PCs, and has now disappeared
again. The software is the same in all cases. I can only assume it's some odd
bug in W98, but we need to find a cure or a work around. Any suggestions
welcome.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top