Click here to Skip to main content
15,900,511 members
Articles / Programming Languages / Visual Basic

Whats My IP Address ?

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
22 Sep 2011CPOL 9.5K   1  
On Vista/Win 7, I have seen code where only a single period is returned for (0). This makes sure you get the actual IP regardless of the system.Const IPPattern As String = "^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$"With Dns.GetHostEntry(System.Environment.MachineName) Return...

Views

Daily Counts

License

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


Written By
Architect GBIS
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions