Click here to Skip to main content
12,815,986 members (40,892 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


1 bookmarked
Posted 20 Sep 2011

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

CEO reew
Germany Germany
No Biography provided

You may also be interested in...

Comments and Discussions

General fails ?? any ... Pin
kiquenet AE21-Nov-11 21:42
memberkiquenet AE21-Nov-11 21:42 
GeneralRe: Try putting in the correct url. Your's is simply wrong. Pin
Marcus Kramer5-Dec-11 9:46
memberMarcus Kramer5-Dec-11 9:46 
GeneralEdward, are you sure it woudl give you the "External" IP add... Pin
Archimedes2428-Sep-11 22:11
memberArchimedes2428-Sep-11 22:11 
GeneralReason for my vote of 3 Not a great alternative - what if th... Pin
Edward Nutting28-Sep-11 8:38
memberEdward Nutting28-Sep-11 8: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.

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