NO Name
NO Name

Reputation: 179

How to find the local network Ip address

I have a .net network application , and as part of improving the performance of the software i would like to find the shortest route to the server . When i have more than one network , i need to find the local network ip from these current ip list .

Please help ,i am working in Vb.net

Upvotes: 0

Views: 1025

Answers (3)

Naresh
Naresh

Reputation: 19

Please try following steps to find local network IP address.

First you configure IP for your machine,

Goto->Start->Run->ncpa.cpl->right click on Local area connection->click on properties->click on Internet protocol->click properties->give IP address like '192.168.0.2'.

Or other format

start->Run->cmd->cd->ipconfig

then showing the ip address.

Upvotes: 0

TBohnen.jnr
TBohnen.jnr

Reputation: 5129

Have a look here this will show you how to get the network name and then from that you can determine the local network name. This is based on the principle that the local network is always local area network or something similar.

Upvotes: 0

Varun Chatterji
Varun Chatterji

Reputation: 5099

If you look at the article at: http://en.wikipedia.org/wiki/Private_network

You will note that the network adapter in the range: 192.168.0.0 – 192.168.255.255

OR 172.16.0.0 – 172.31.255.255

OR 10.0.0.0 – 10.255.255.255

indicate that the IP in these ranges is on a local network....

Upvotes: 1

Related Questions