VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Find local IP addresses (NOT with Winsock.ocx)

Digital SiN  (1 Submission)   Internet/HTML   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

This code finds all local IP addresses by querying winsock.dll and returns them for your use. I got this off of the MSDN web site, so it is not my code. I just thought all of you would like to have it. =P

Assumes
Just put this into a module (.bas file) and call GetTheIP() with no arguments and all is good. example: Dim MyIP as String MyIP = GetTheIP Text1.Text = MyIP Tested on: Windows98 with a Dialup Connection. Let me know if it works on cable modems and such.

Returns
Local Internet IP addresses

API Declarations
See code below.

Rate Find local IP addresses (NOT with Winsock.ocx) (12(12 Vote))
Find local IP addresses (NOT with Winsock.ocx).bas

Find local IP addresses (NOT with Winsock.ocx) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters