Thread: ip or hostname

  1. #1
    Registered User
    Join Date
    Nov 2001

    Question ip or hostname

    Hi there,

    Any idea on if a valid IP address is entered, the corresponding host name is returned and if a hostname is entered, the corresponding IP address is returned. Thanks in advance.


  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    I think the functions are GetHostByName() and GetHostByAddr() (it could be GetHostByAddress(), though)

    hope that helps.

  3. #3
    Registered User
    Join Date
    Apr 2002
    mail me i will give u the code

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Converting 32 bit binary IP to decimal IP (vice-versa)
    By Mankthetank19 in forum C Programming
    Replies: 15
    Last Post: 12-28-2009, 07:17 PM
  2. getting ip by hostname
    By NiSA in forum Networking/Device Communication
    Replies: 2
    Last Post: 05-26-2007, 10:56 PM
  3. obtain hostname or IP
    By afisher in forum Networking/Device Communication
    Replies: 3
    Last Post: 12-01-2004, 07:46 AM
  4. Outputting your IP and hostname
    By Nakeerb in forum C++ Programming
    Replies: 4
    Last Post: 10-21-2002, 08:24 PM