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

Tagged as

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("")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("")
Dim resp As System.Net.WebResponse = req.GetResponse
st = resp.GetResponseStream
sr = New System.IO.StreamReader(st)
GetLocalIPAddress = sr.ReadLine.ToString


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


About the Author

Architect Deutsche Telekom AG
Germany Germany
No Biography provided

Comments and Discussions

General fails ?? any ... Pinmemberkiquenet AE21-Nov-11 21:42 
GeneralRe: Try putting in the correct url. Your's is simply wrong. PinmemberMarcus Kramer5-Dec-11 9:46 
GeneralEdward, are you sure it woudl give you the "External" IP add... PinmemberArchimedes2428-Sep-11 22:11 
GeneralReason for my vote of 3 Not a great alternative - what if th... PinmemberEdward Nutting28-Sep-11 8: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 | Terms of Use | Mobile
Web04 | 2.8.141223.1 | Last Updated 20 Sep 2011
Article Copyright 2011 by Archimedes24
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid