473,289 Members | 1,896 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,289 software developers and data experts.

Arp request to get MAc Adress with IP address

Hello,
I have a network on same subnet. I have an ip address of a machine.
but i need to get its MAC Adress.
Sendingf ARP request is the way i am taking.

IS there any other way to get this MAC Adress in python.??

Also does python go down to level 2 of TCP/IP model??
Sorry if i am to naive. Just learning python

thanks

Oct 30 '07 #1
2 5473
On Oct 30, 1:57 pm, amjad...@gmail.com wrote:
Hello,
I have a network on same subnet. I have an ip address of a machine.
but i need to get its MAC Adress.
Sendingf ARP request is the way i am taking.

IS there any other way to get this MAC Adress in python.??

Also does python go down to level 2 of TCP/IP model??
When you start talking about this kind of low-level stuff, you really
need to start thinking about your OS, not Python. How would you do
this task if you had to write in in C? Which system calls would you
need to make?

Once you figure that out, then it's a question how to make those
system calls from Python.

Oct 30 '07 #2
am******@gmail.com wrote:
Hello,
I have a network on same subnet. I have an ip address of a machine.
but i need to get its MAC Adress.
Sendingf ARP request is the way i am taking.

IS there any other way to get this MAC Adress in python.??

Also does python go down to level 2 of TCP/IP model??
Sorry if i am to naive. Just learning python

thanks
Python's standard libs don't do that, but you can probably work out
something with sockets.

However, I do recommend you take a look at Scapy, which is just great
for network protocol manipulation. http://www.secdev.org/projects/scapy/

I hadn't used it in a while, but when I last tried it, it was very
promising.
Oct 31 '07 #3

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

Similar topics

6
by: RosalieM | last post by:
How can i know the nic adress from an incoming socket ? I can easily know the ip adress and port number but how do i have some information about arp level ? Thanks
9
by: martin | last post by:
Hi, a very newbie question. How do I split the adress and number to 2 variables? ex. "Kingsroad 347" = variabel1 = "Kingsroad" variabel2 = "347" Ill guess i have to search the string from...
5
by: FKothe | last post by:
Hello together, the program below shows a behavior i do not understand. When compiled with the HX-UX11 c-comiler ( version B.11.11.04 ) v2.p in function test_it0 points to an invalid adress and...
2
by: Sven Wynsberghe | last post by:
Like the topic states, is there any way I can get the ip-adress of my computer with a vb.net application? thanks for the help :)
11
by: mwebel | last post by:
Hi, i had this problem before (posted here and solved it then) now i have the same problem but more complicated and general... basically i want to store the adress of a istream in a char* among...
0
by: MichK | last post by:
Hi, I have a problem with passing a pointer in visual basic. The thing is I receive an array address of a certain API I call in visual basic. There is no value passed, just an address in the...
3
by: Slawomir | last post by:
Hello. Simple question about webforms: How to hide true address of website ? To this day a used "Server.Transfer()" to redirect to another page. In sql server I have a table with data like this: ...
1
by: TOUNSI | last post by:
hi at every body i've this code that can connect with Active Directory <body> <?php $user = "Administrateur@essaie.du";// mon nom d utilisateur c'est la convetion de active Directory d'utiliser...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.