Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 15425, WinSock: IP address <-> host name resolving

by Alex Popkov Email: Anonymous


This demo shows how to get hostname of local computer, how get IP address by hostname and how to get hostname by IP address.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 5.0  to 5.0 2710 downloads
Copyright: No significant restrictions


Size: 2,836 bytes
Updated on Sun, 02 May 2004 07:37:54 GMT
Originally uploaded on Sat, 09 Dec 2000 20:33:50 GMT
SHA1 Hash: D9675637D8C4E469D78758E1CFB99B5DDFF181D0
MD5 Hash: 151C5227E5839FA0D78B0944E3F21311

    Explore the files in this upload

Description
There was some questions in borland.public.delphi.internet.winsock newsgroup about getting IP address by given host name (domain name), getting name by IP and getting name/IP of local computer. This demo illustrates answers to those questions. The demo uses only WinSock module directly without TClientSocket or TServerSocket components and without any 3rd party components. Only some WinSock API functions used: GetHostByAddr(), GetHostByName(), gethistname() and inet_*().

For more information, see http://www.abysslabs.com/

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Server Response from: ETNACDC03