473,657 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1792
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.c om> wrote in message
news:OU******** ********@TK2MSF TNGP10.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\Nincom poop>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
27218
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 the InetAddress class that does this. The closest I got was the getLocalHost() which will return the IP-address representing the loopback address (usually 127.0.01, isn't it ?). Any ideas ?
8
4585
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: Dim mc As System.Management.ManagementClass Dim mo As System.Management.ManagementObject mc = New System.Management.ManagementClass("Win32_NetworkAdapterConfiguration")
15
2232
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 it as an array starting at (you guessed it) 0x0000. So I would have struct iv_s* ivt = (struct iv_s *) 0x0000;
1
1752
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 <netdb.h> int main() { char hostn; //placeholder for the hostname
29
3878
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
2597
by: Souljaz | last post by:
Hi, how to find IP address. Thanks
36
3824
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
13598
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 we say, inherited? -- a COBOL program with very little documentation that I've recompiled for debugging purposes. The compile/link/bind have all been done, but nothing in the output tells me what plan the program has been bound to, so I can't...
4
13085
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 IP Address... Dim IPHost As IPHostEntry = Dns.GetHostByName(Dns.GetHostName()) MessageBox.Show("My IP address is " & IPHost.AddressList(0).ToString()) and i tried this code too...
0
8399
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8606
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4159
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.