PC Review


Reply
Thread Tools Rate Thread

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

 
 
Ritesh Anand
Guest
Posts: n/a
 
      13th Feb 2004
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gethostbyname rpv30@yahoo.co.in Microsoft Windows 2000 Active Directory 3 8th Aug 2006 02:41 PM
gethostbyname rpv30@yahoo.co.in Windows XP Networking 1 8th Aug 2006 06:20 AM
gethostbyname Jason Microsoft VB .NET 1 13th Feb 2006 10:29 PM
GetHostByName in IIS Bill Microsoft ASP .NET 0 2nd Aug 2004 05:48 PM
Differential behaviour of GetHostbyName( ) API on NT and 2000 Ritesh Anand Microsoft Windows 2000 Networking 1 13th Feb 2004 04:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:01 PM.