473,385 Members | 2,044 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,385 software developers and data experts.

Find out the MAC address of a machine.

UJ
Is there any way to find out the actual MAC Address that a request comes in
from? We are trying to get a way where we can limit access to specific
machines (TCP/IP isn't good enough - we want to do it at the actual machine
level where the user can't trick it.)

TIA.
Nov 19 '05 #1
4 1786
Just as a side not... MAC can be spoofed as well.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"UJ" wrote:
Is there any way to find out the actual MAC Address that a request comes in
from? We are trying to get a way where we can limit access to specific
machines (TCP/IP isn't good enough - we want to do it at the actual machine
level where the user can't trick it.)

TIA.

Nov 19 '05 #2
Essentially, no.

The MAC address of a packet changes as it travels from network to
network. If I PING a machine on network B from network A, the MAC
address of the packet arriving at the machine on network B will be of
the interface on the router that routed my request from network A to
network B.

So you can get the MAC address, but that address will not be of the
machine sending you the request.

Nov 19 '05 #3
if its a local address, and you are using dhcp (or wins), you can use the
ipaddress to lookup the mac address in the dhcp (or wins) server. over the
internet or extranet you would have to install an active/x control (which
would be unsafe) whcih was used to pass the mac address

-- bruce (sqlwork.com)

"UJ" <fr**@nowhere.com> wrote in message
news:OU****************@TK2MSFTNGP10.phx.gbl...
Is there any way to find out the actual MAC Address that a request comes
in from? We are trying to get a way where we can limit access to specific
machines (TCP/IP isn't good enough - we want to do it at the actual
machine level where the user can't trick it.)

TIA.

Nov 19 '05 #4
if its any help

the command "arp -a" prints the ip:mac address table

C:\Documents and Settings\Nincompoop>arp -a

Interface: 192.168.1.3 --- 0x5
Internet Address Physical Address Type
192.168.1.1 00-12-f5-5f-a7-63 dynamic

Interface: 192.168.2.1 --- 0x6
Internet Address Physical Address Type
192.168.2.6 00-03-2d-13-7d-e2 dynamic

Nov 19 '05 #5

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

Similar topics

4
by: Arne | last post by:
Hi, Probably an easy answer to this, but I have not been able to figure it out. How can I find the IP-address of the machine that my Java-program is running on ? Could not find any methods in...
8
by: YAN | last post by:
Hi, I want to get the mac address from a machine, which i have the IP address of that machine, how can i do that? I know how to get the mac address of the local machine from the following code: ...
15
by: dandelion | last post by:
Hi, Just another question for the standards jockeys... Suppose I have an Interrupt Vector Table located at address 0x0000 (16-bit machine). I want to dump the context of the IVT, by treating...
1
by: Rusty | last post by:
I am trying to find the ip of my machine, but all I get is the local ip, not the ip I want. This is a program that finds the local ip, what should be modified: #include <stdio.h> #include...
29
by: chellappa | last post by:
hi all I need to write a program to find mac address of a my computer using libaries, is this possible? How? thanks
12
by: Souljaz | last post by:
Hi, how to find IP address. Thanks
36
by: Rahul K | last post by:
Hello all Suppose I am given a datatype say X in C. How can i find its size without declaring a variable or pointer variable of that type, and of course without using sizeof operator.
10
by: OppThumb | last post by:
Hi, I've been searching this newsgroup for an answer to my question, and the closest I've come asks my question, but in reverse ("How to figure out the program from plan/package"). I've -- shall...
4
by: remya1000 | last post by:
i'm using VB.NET 2003 Application program. i need to get External IP Address (internet). i searched internet and found come codes and tried that... i tried this code... but it returned my internal...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.