|
-
January 28th, 2000, 09:45 AM
#1
Getting IP address in vb
I want to set up a vb program that will determine the IP address, and if it is invalid, then request a new one. I had to set up dchp for ip addressing, and sometimes the host isn't available. The DOS command is ipconfig. But rather than send the output to a file, and read it, I would prefer to use an API to determine the results. Anybody have any ideas???
-
January 28th, 2000, 09:57 AM
#2
Re: Getting IP address in vb
try using the Winsock functions gethostbyaddr or gethostbyname.
-
January 28th, 2000, 06:17 PM
#3
Re: Getting IP address in vb
This should help. It is a module containing various IP utilities.
http://www.freevbcode.com/ShowCode.Asp?ID=199
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|