Page 1 of 2 12 LastLast
Results 1 to 15 of 16

Thread: FTP to a mac address

  1. #1
    Join Date
    28th April 2004 - 11:42
    Bike
    tedium
    Location
    earth
    Posts
    3,526

    FTP to a mac address

    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.
    Quote Originally Posted by Kickha
    Fuck off, cheese has no place in pies
    Quote Originally Posted by Akzle
    i would could and can, put a fat fuck down with a bit of brass.

  2. #2
    Join Date
    21st April 2011 - 13:13
    Bike
    01 SV650S
    Location
    Behind you
    Posts
    860
    Blog Entries
    1
    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.

  3. #3
    Join Date
    30th October 2010 - 02:21
    Bike
    '03 DR650, '07 Scorpio
    Location
    Christchurch
    Posts
    234
    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.

  4. #4
    Join Date
    5th February 2008 - 13:07
    Bike
    2006 Hyosung GT650R
    Location
    BOP
    Posts
    7,141
    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.

  5. #5
    Join Date
    28th April 2004 - 11:42
    Bike
    tedium
    Location
    earth
    Posts
    3,526
    Different networks thingie. Device uses wifi on different customer networks or on end users android AP.

    Quote Originally Posted by Buyasta View Post
    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.
    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.
    Quote Originally Posted by Kickha
    Fuck off, cheese has no place in pies
    Quote Originally Posted by Akzle
    i would could and can, put a fat fuck down with a bit of brass.

  6. #6
    Join Date
    6th December 2003 - 15:22
    Bike
    2001 Duc 7 4 8 R
    Location
    Capital
    Posts
    520
    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

  7. #7
    Join Date
    10th September 2008 - 21:23
    Bike
    Tyre Shredder
    Location
    Valley of the Sun
    Posts
    1,068
    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

  8. #8
    Join Date
    5th February 2008 - 13:07
    Bike
    2006 Hyosung GT650R
    Location
    BOP
    Posts
    7,141
    Quote Originally Posted by scracha View Post
    Device uses wifi on different customer networks or on end users android AP.
    Cant you just give the box a name that resolves with intermal DNS on each respective network? That way, wherever you go you talk to it by name and it works.
    "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.

  9. #9
    Join Date
    28th April 2004 - 11:42
    Bike
    tedium
    Location
    earth
    Posts
    3,526
    Quote Originally Posted by DangerousBastard View Post
    Cant you just give the box a name that resolves with intermal DNS on each respective network? That way, wherever you go you talk to it by name and it works.
    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.
    Quote Originally Posted by Kickha
    Fuck off, cheese has no place in pies
    Quote Originally Posted by Akzle
    i would could and can, put a fat fuck down with a bit of brass.

  10. #10
    Join Date
    9th August 2005 - 19:52
    Bike
    CBR450RR
    Location
    Hamilton
    Posts
    6,368
    Blog Entries
    77
    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

  11. #11
    Join Date
    5th February 2008 - 13:07
    Bike
    2006 Hyosung GT650R
    Location
    BOP
    Posts
    7,141
    Quote Originally Posted by Mental Trousers View Post
    Add a second ip to your NIC then add a route for it.
    You don't need to add a second NIC to do that. The O/S will quite happily allow you to attach two different subnets to the same interface.

    If you want DNS to resolve internally, you are going to have to run your own custom DNS. It's a bit fiddly but it works.
    "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.

  12. #12
    Join Date
    9th August 2005 - 19:52
    Bike
    CBR450RR
    Location
    Hamilton
    Posts
    6,368
    Blog Entries
    77
    Quote Originally Posted by DangerousBastard View Post
    You don't need to add a second NIC to do that. The O/S will quite happily allow you to attach two different subnets to the same interface.

    If you want DNS to resolve internally, you are going to have to run your own custom DNS. It's a bit fiddly but it works.
    I said a second ip to the NIC, not a second NIC. It's there in your quote!!

    DNS isn't needed to get to the http interface or push a new binary using tftp.
    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

  13. #13
    Join Date
    10th May 2009 - 15:22
    Bike
    2010 Honda CB1000R Predator
    Location
    Orewa, Auckland
    Posts
    4,490
    Blog Entries
    19
    Quote Originally Posted by scracha View Post
    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.
    No.

    ..10 chars..

  14. #14
    Join Date
    5th February 2008 - 13:07
    Bike
    2006 Hyosung GT650R
    Location
    BOP
    Posts
    7,141
    Quote Originally Posted by Mental Trousers View Post
    I said a second ip to the NIC, not a second NIC. It's there in your quote!!
    Soz, was a bit pissed, lol.
    "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.

  15. #15
    Join Date
    28th April 2004 - 11:42
    Bike
    tedium
    Location
    earth
    Posts
    3,526
    Quote Originally Posted by Mental Trousers View Post
    Add a second ip to your NIC then add a route for it.
    Typical IT guys....don't listen carefully to the problem.

    Quote Originally Posted by Mental Trousers View Post
    EDIT what'd you do in the end?
    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.
    Quote Originally Posted by Kickha
    Fuck off, cheese has no place in pies
    Quote Originally Posted by Akzle
    i would could and can, put a fat fuck down with a bit of brass.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •