Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Whats My IP Address ?

, 20 Sep 2011
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)

About the Author

Archimedes24
Architect Deutsche Telekom AG
Germany Germany
No Biography provided

Comments and Discussions

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

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web04 | 2.8.140721.1 | Last Updated 20 Sep 2011
Article Copyright 2011 by Archimedes24
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid