Connecting Tech Pros Worldwide Forums | Help | Site Map

See if Mac Address Online

=?Utf-8?B?SHVzYW0=?=
Guest
 
Posts: n/a
#1: Sep 9 '07
Hi EveryBody:

How can I see or detrmain If a specfiy MAC address OR its assigned IP is
online ?

Is there any way to do it by

System.Net.NetworkInformation

any help will be apprecaited

regard's

Husam

Phillip Taylor
Guest
 
Posts: n/a
#2: Sep 10 '07

re: See if Mac Address Online


On 9 Sep, 12:38, Husam <Hu...@discussions.microsoft.comwrote:
Quote:
Hi EveryBody:
>
How can I see or detrmain If a specfiy MAC address OR its assigned IP is
online ?
>
Is there any way to do it by
>
System.Net.NetworkInformation
>
any help will be apprecaited
>
regard's
>
Husam
You could ping the machine assuming firewalls weren't blocking it. As
for finding out by MAC address, probably not. This information is
usually only transferred as far as it's next physical connection (the
switch it's plugged into). We use IP Addressing the rest of the time.

Newbie Coder
Guest
 
Posts: n/a
#3: Sep 10 '07

re: See if Mac Address Online


Husam,

Use Regex to pull out the IP. I use this URL:

http://checkip.dyndns.org

Do this:

Start a web request to download the HTML source of the above page using
StreamReader.ReadToEnd()

Then use this regex to extraxt the IP

Dim regexIP As Regex = New Regex("\b\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}\b")
Dim strIP As String = regexIP.Match(strHTML).Value:

return the strIP for the IP address

Then you can take it from there

--
Newbie Coder
(It's just a name)


"Phillip Taylor" <Phillip.Ross.Taylor@gmail.comwrote in message
news:1189418368.574334.47050@k79g2000hse.googlegro ups.com...
Quote:
On 9 Sep, 12:38, Husam <Hu...@discussions.microsoft.comwrote:
Quote:
Hi EveryBody:

How can I see or detrmain If a specfiy MAC address OR its assigned IP is
online ?

Is there any way to do it by

System.Net.NetworkInformation

any help will be apprecaited

regard's

Husam
>
You could ping the machine assuming firewalls weren't blocking it. As
for finding out by MAC address, probably not. This information is
usually only transferred as far as it's next physical connection (the
switch it's plugged into). We use IP Addressing the rest of the time.
>

Closed Thread