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


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 : of
the amchine but in case of Win 2000 machine this API
returns IP Addresss instead of Is
there any way out of this.


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