OK, is there any way of binding a MAC address to a given host name in Windows?
Specifically I want to FTP to a device. Device doesn't have capability to issue netbios name. Is on different networks so static IP is also a no-no.
OK, is there any way of binding a MAC address to a given host name in Windows?
Specifically I want to FTP to a device. Device doesn't have capability to issue netbios name. Is on different networks so static IP is also a no-no.
Originally Posted by Kickha
Originally Posted by Akzle
assuming you have access to the server machine, why not just run ipconfig to get it's DHCP assigned address and put that into the client?
Te audire no possum. Musa sapientum fixa est in aure.
It's not possible to just put an entry in your hosts file with a mac address in place of an IP, but you could write a script that uses arp to find the current ip of a given mac address and update your hosts file accordingy... arp -a will give you a list of every interface windows has an ARP entry for, listing the IP and MAC of each.
I should just note, I'm not 100% sure that's a native windows command, it could be from Cygwin or MingW.
Need more information. What do you mean "Is on different networks" ?
"I am a licenced motorcycle instructor, I agree with dangerousbastard, no point in repeating what he said."
"read what Steve says. He's right."
"What Steve said pretty much summed it up."
"I did axactly as you said and it worked...!!"
"Wow, Great advise there DB."
WTB: Hyosung bikes or going or not.
Different networks thingie. Device uses wifi on different customer networks or on end users android AP.
An excellent idea. arp was how I'd first found the bloody thing. File permissions on win 7 are actually pretty good and make changing hosts file a bit of a bitch. Quick batch file with some dos pipes and it now echo's correct ip to the user. If they'll pay me (fat bloody chance) I'll knock up summit to open up the ftp session.
Originally Posted by Kickha
Originally Posted by Akzle
dynamic Name server is another. Checkout rfc2136 .
It's not a beer pot.... It's a fuel tank for a sex machine
Trip of a life time http://www.buenosaires-caracas.com.ar/tours.html
Trip details here
Arp only stores mac addresses of local ip's. Anything out of your subnet gEts forwarded to the default gateway so no mac - ip conversion is required.
Dynamic dns could work but you need to run sofmething on the remote device - in which case you could setup anything that can let you know the ip of tne device, even a rregular ping back or something.
If you have good access to the remote network then access to the dhcp table on the server/router will give you mac addresses. Or possibly the wireless client table.Or you could run a port scanning tool overthe remote subnet.
Ciao Marco
"I am a licenced motorcycle instructor, I agree with dangerousbastard, no point in repeating what he said."
"read what Steve says. He's right."
"What Steve said pretty much summed it up."
"I did axactly as you said and it worked...!!"
"Wow, Great advise there DB."
WTB: Hyosung bikes or going or not.
Tried....doesn't seem to resolve. Attempted it on 3 different routers routers. Removed firewall etc. etc. It's some bloody German thing![]()
DHCP...yeah...read original post. It's not ME using the device so I can't train the end user how to get onto different routers (assuming they're allowed to). Obviously I can assign it the same IP on their own network but it's a portable device going to different locations / networks. They want summit simple. Anyhoo...job done.
Originally Posted by Kickha
Originally Posted by Akzle
Add a second ip to your NIC then add a route for it.
EDIT what'd you do in the end?
Zen wisdom: No matter what happens, somebody will find a way to take it too seriously. - obviously had KB in mind when he came up with that gem
Artificial intelligence is no match for natural stupidity
"I am a licenced motorcycle instructor, I agree with dangerousbastard, no point in repeating what he said."
"read what Steve says. He's right."
"What Steve said pretty much summed it up."
"I did axactly as you said and it worked...!!"
"Wow, Great advise there DB."
WTB: Hyosung bikes or going or not.
Zen wisdom: No matter what happens, somebody will find a way to take it too seriously. - obviously had KB in mind when he came up with that gem
Artificial intelligence is no match for natural stupidity
"I am a licenced motorcycle instructor, I agree with dangerousbastard, no point in repeating what he said."
"read what Steve says. He's right."
"What Steve said pretty much summed it up."
"I did axactly as you said and it worked...!!"
"Wow, Great advise there DB."
WTB: Hyosung bikes or going or not.
Typical IT guys....don't listen carefully to the problem.
Chucked the following in a batch file for the customer
@arp -a | findstr "MA-CA-DR-ES-OF-IT"
pause
If i was clever I'd launch filzilla or summit with the IP it returns.
Originally Posted by Kickha
Originally Posted by Akzle
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks