Automatically Getting IP address of computer on network

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I need to get the IP address of a computer on the network that uses dynamic
IP addressing. Is there anyway I get the address but providing the name of
the computer?

Thanks in advance

Al
 
Terp,

No I have not but I used IPAddress =
System.Net.Dns.GetHostByName(hostname).AddressList(0).ToString()

Which works if i am running it on the server but not from other computer on
the network.
 
Al,
No I have not but I used IPAddress =
System.Net.Dns.GetHostByName(hostname).AddressList(0).ToString()

I did not know that that IPAddress class, so I am glad I saw it in the
message from Terp

However, you make me curious, you ask a question get a solution and tell
than that you have your own solution.

Why do you than ask this question?

(You even make me as well curious if your question should not be I want the
IP address of the in the program used workstation. Instead of any
workstation in the network what now your question is and for what you got an
answer from Terp).

The first one is:
Dim IPAdd As String = System.Net.Dns.Resolve _
(SystemInformation.ComputerName).AddressList(0).ToString


Cor
 
Hi
I do need IP address of any computer on the network. Please forgive me for
how i address the question. But can anyone help me?
thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top