Jump to content

A way to find out IP with MAC?


qeldroma
 Share

Recommended Posts

I got a server which changes the IP dynamically every couple of hours.

Therfore i don't want to compile an utility in for dyndns.org, or something similar, i got the MAC-ID, that is identifying worldwide.

 

But, because of it's dynamic IP, i have always to ring someone up tgive me the actual IP.

I hate that.

 

I think there MUST be a way to find the IP via MAC-ID, nothing else than TCP/IP has to do with every packet?!

Link to comment
Share on other sites

I don't think so. The MAC id has nothing to do with the IP address. They are two completely seperate things.

 

You might ask you're service provider if they can give you a static IP. You might also be able to register a domain name that tracks the IP automatically. I remember someone suggesting that sort of a solution somewhere before.

 

Glitz.

Link to comment
Share on other sites

Phew, got a solution!!

 

I found a utility to put sthg on an ftp-server by batch.

 

So i grep ifconfig, put this in a file and put that file croned on the webserver, that i've got, et voilà.

 

8) 8) 8) 8) 8)

 

It's cool, isn't it?

 

Next step will be to make a simple script, that looks if the ip changed and sends only then the file.

Link to comment
Share on other sites

the mac adress is a unique layer 2 adress

the ip adress is a layer 3 adress

 

in order to have communication happen you have to know both adresses.

usually the sender only knows the ip adress of the target-host so the ARP (Adress Resolution Protocol) is used. In your case the R-ARP (reverse ARP) has to be used to find out the ip.

 

i never did an r-arp-request manually on linux but thats what you are searching for.

Link to comment
Share on other sites

rarp has something to do with ethernet networks (used for manipulating the resolution table on those networks). It has also been obsolete since the 2.3 kernel versions. The program RARP is still installed by mandrake but I tried to run it and it says there is no kernel support for it. Maybe there is a module that has to be installed?

 

Glitz.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...