| | |
Get Wan IP Code doesn't work HELP
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2008
Posts: 65
Reputation:
Solved Threads: 4
here is the code:
This used to work in VB.NET 2005, before updating all the service packs.
VB.NET Syntax (Toggle Plain Text)
'//WAN IP Dim url As String Dim myexpression As New Regex("[1-2]?\d{1,2}\.[1-2]?\d{1,2}\.[1-2]?\d{1,2}\.[1-2]?\d{1,2}") Dim MyIPAddress As MatchCollection url = "http:\\www.whatsmyip.com" Dim objWebClient As WebClient = New WebClient Dim objData As Stream = objWebClient.OpenRead(url) Dim streader As StreamReader = New StreamReader(objData) Dim HostIP As IPAddress HostIP = Dns.GetHostEntry(Dns.GetHostName).AddressList.GetValue(0) MyIPAddress = myexpression.Matches(streader.ReadToEnd()) If MyIPAddress.ToString = "" Then
This used to work in VB.NET 2005, before updating all the service packs.
The journey of a thousand miles, begins with the first step!
![]() |
Similar Threads
- weird problam conncting to internet after installing avg 8 (Windows NT / 2000 / XP)
- Guess what... I need help again (C++)
- Router Help (Networking Hardware Configuration)
- hijackthis log (Viruses, Spyware and other Nasties)
- DVD+RW/+R Burning problems Update (Storage)
- xp remote desktop across wan/lan (Windows NT / 2000 / XP)
- Strange thing... URGENT (ASP.NET)
- Compile .cpp into .bin extension (C++)
- ICS With Wireless Routers (Networking Hardware Configuration)
Other Threads in the VB.NET Forum
- Previous Thread: sql server ce
- Next Thread: Cannot find database after printing to file
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2008 access add arithmetic array assignment basic binary bing box button buttons center code combobox component connectionstring convert cpu data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees excel file-dialog firewall folder google hardcopy image images isnumericfuntioncall listview login math memory mobile module ms mssqlbackend mysql navigate net networking opacity output pan peertopeervideostreaming picturebox picturebox1 port print printpreview problemwithinstallation project record reports" reuse save savedialog serial sorting sqldatbase storedprocedure string temp text textbox timer toolbox updown upload useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vbnet view vista visual visualbasic visualbasic.net visualstudio web wpf xml





