Click here to Skip to main content
12,299,236 members (50,830 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

4.6K views
1 bookmarked
Posted

Whats My IP Address ?

, 20 Sep 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
I find this useful:Dim st As System.IO.StreamDim sr As System.IO.StreamReaderDim req As System.Net.WebRequest = System.Net.WebRequest.Create("http://www.whatismyip.com/automation/n09230945.asp")Dim resp As System.Net.WebResponse = req.GetResponsest = resp.GetResponseStreamsr =...

I find this useful:

Dim st As System.IO.Stream
Dim sr As System.IO.StreamReader
 
Dim req As System.Net.WebRequest = System.Net.WebRequest.Create("http://www.whatismyip.com/automation/n09230945.asp")
Dim resp As System.Net.WebResponse = req.GetResponse
 
st = resp.GetResponseStream
sr = New System.IO.StreamReader(st)
GetLocalIPAddress = sr.ReadLine.ToString

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Archimedes24
CEO reew
Germany Germany
No Biography provided

You may also be interested in...

Comments and Discussions

 
Generalhttp://automation.whatismyip.com/n09230945.asp fails ?? any ... Pin
kiquenet AE21-Nov-11 20:42
memberkiquenet AE21-Nov-11 20:42 
GeneralRe: Try putting in the correct url. Your's is simply wrong. Pin
Marcus Kramer5-Dec-11 8:46
memberMarcus Kramer5-Dec-11 8:46 
GeneralEdward, are you sure it woudl give you the "External" IP add... Pin
Archimedes2428-Sep-11 21:11
memberArchimedes2428-Sep-11 21:11 
GeneralReason for my vote of 3 Not a great alternative - what if th... Pin
Edward Nutting28-Sep-11 7:38
memberEdward Nutting28-Sep-11 7:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160525.2 | Last Updated 20 Sep 2011
Article Copyright 2011 by Archimedes24
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid