
Anyone know how to get TCP/IP address?
Quote:
>I am trying to obtain the TCP/IP address on remote computers (I already
>know how to get the local IP address). Can anyone point me in the right
>direction?
There's a couple of approaches that you could take. One would be to
use the Windows Sockets API directly, calling gethostbyname().
However, in
Visual Basic, this can be somewhat difficult because you
have to deal with structures, pointers, etc.
If you're simply looking to resolve hostnames into IP addresses, then
you can download our free SocketWrench package which includes a
Windows Sockets control. To do what you want would just take a few
lines of code (look at the HostName and HostAddress properties). You
can download it from our site at http://www.catalyst.com.
If you're looking to do more DNS specific things (like MX record
lookups, etc.) then we have a control as part of our commercial
SocketTools package that can do this as well.