|
-
Nov 25th, 2002, 01:25 PM
#1
Thread Starter
New Member
IP Address
Anyone have an idea of some code I could use in VB.NET so that I could find my net IP address, not my local one?
-
Nov 25th, 2002, 01:27 PM
#2
Frenzied Member
Are you behind a router? Because thats seems to be the only problem, when trying to your IP address. If not, it should be easy. Just search the boards, its been asked about before.
Dont gain the world and lose your soul
-
Nov 25th, 2002, 03:46 PM
#3
I wonder how many charact
-
Nov 25th, 2002, 05:59 PM
#4
Sleep mode
this may helps
To find your IP address we first ask for your machine name, then we pass that to the GetHostName function that gives us a valid IPHostEntry object. This object contains your IP address in the AddressList array, so we just dump the value to the console.
VB Code:
Dim h As System.Net.IPHostEntry = System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName)_
Console.WriteLine(CType(h.AddressList.GetValue(0),_ IPAddress).ToString)
from abstractvb.com
-
Nov 25th, 2002, 10:20 PM
#5
Thread Starter
New Member
Router
I have router, what do I do?
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
|