473,387 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Automatically Getting IP address of computer on network

Al
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

Nov 21 '05 #1
6 2628
Have you looked into the IPAddress class?

Terp

"Al" <Al@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
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

Nov 21 '05 #2
Have you looked into the IPAddress class?

Terp

"Al" <Al@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
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

Nov 21 '05 #3
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.

"Terp" wrote:
Have you looked into the IPAddress class?

Terp

"Al" <Al@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
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


Nov 21 '05 #4
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.

"Terp" wrote:
Have you looked into the IPAddress class?

Terp

"Al" <Al@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
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


Nov 21 '05 #5
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).To String
Cor
Nov 21 '05 #6
Al
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
"Cor Ligthert" wrote:
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).To String
Cor

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dotNetDave | last post by:
I just discovered that this: Dim searcher As New Management.ManagementObjectSearcher("SELECT NetConnectionStatus FROM Win32_NetworkAdapter") For Each networkAdapter As...
0
by: Al | last post by:
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
9
by: Chris | last post by:
How do I find and print to screen the IP address of the computer my python program is working on?
8
by: MrNobody | last post by:
I need to find out the IP address of my local network on the WAN. There is alot of information on getting my local machine IP address but I can't find anything for getting the IP address my network...
0
by: iwdu15 | last post by:
hi, is there anyway an app can get a list of users on a certain network and the ip address of the computer there on? i have a messenger program that i want to use on my network from my computer,...
4
by: Macca | last post by:
Hi, I am using an asynchronous socket server to allow comms between multiple clients and my server. I know how to obtain the IPAddress of the client (network device) as shown below :- string...
5
by: Paul Bromley | last post by:
How do I know which IP address is active?? I have created the following class and this works well, but the first address it obtains on my machine is not the active one - in fact I do not know...
8
by: Bruno Barros | last post by:
Hey there. I'm currently working on an intranet, and would like to know how I can get the windows usernames of the visitors. You can get their IP with $_SERVER; But what about their Windows...
6
by: Ryan Liu | last post by:
Hi, If I want to uniquely identify a computer. I can read CPU ID or Mac Address. I heard, but is this true: some BIOS can block CPU ID from being read? (In this case, will I get an exception,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.