Different behaviour of getHostbyName() API in NT and 2K


R

Ritesh Anand

I have been using getHostbyName() API to retrieve the IP
Address of a machine by passing the machine's name. But I
have noticed that when the network wire is unplugged, this
API returns the correct IP Address (say : 172.16.4.186) of
the amchine but in case of Win 2000 machine this API
returns IP Addresss 127.0.0.1 instead of 172.16.4.186. Is
there any way out of this.
 
Ad

Advertisements


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