C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Find IP Address of the computer


Posted Date: 19 Feb 2007    Resource Type: Code Snippets    Category: Network

Posted By: Tony John       Member Level: Gold
Rating:     Points: 10



This code shows how to find the IPAddress of the a computer. This writes the list of all IP Addresses of the computer.

        Dim localEntry As Net.IPHostEntry = Dns.GetHostEntry(System.Net.Dns.GetHostName)
For Each address As Net.IPAddress In localEntry.AddressList
Console.WriteLine( address.ToString() )
Next





Responses

Author: ranipriya    01 Jun 2008Member Level: Gold   Points : 2
sir,why this error is coming??

An unhandled exception of type 'System.FormatException' occurred in system.dll

Additional information: An invalid IP address was specified.
by rani


Author: sunny khetarpal    01 Jun 2008Member Level: Bronze   Points : 2
@Rani

r u working in vb.net or C#??


Author: Gopi    02 Jun 2008Member Level: Bronze   Points : 0
Its printing my computer ip address...good program


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Previous Resource: Ping a computer and send file to remote host
Return to Discussion Resource Index
Post New Resource
Category: Network


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

masks masks masks

Contact Us    Privacy Policy    Terms Of Use