logo elektroda
logo elektroda
X
logo elektroda

How to find the IP address when I know the mac of the arduino device

klon111 894 14
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19241662
    klon111
    Level 11  
    Hello
    I have a problem as the router changes IP address after every reset.
    The router does not have the option to assign an IP to a MAC.
  • ADVERTISEMENT
  • #2 19241684
    cysiekw
    Level 42  
    klon111 wrote:
    router changes IP address.
    I understand you mean the ip of the tip which gets the address from the dhcp? if so set it hard on the tip
  • #3 19241692
    bubu1769
    Level 42  
    Which router?
    You can usually assign IP data to a MAC address on any router.
  • ADVERTISEMENT
  • #4 19241700
    klon111
    Level 11  
    D-Link DWR-116
  • ADVERTISEMENT
  • #5 19241703
    karwo
    Level 31  
    Assign the Arduino device some IP address from the end of the router-assigned pool (one that would not normally be assigned by the router's DHCP to any device on your network).
  • ADVERTISEMENT
  • #6 19241708
    klon111
    Level 11  
    How to do it, because I'm talking about a server on a Raspberry Pi

    Added after 4 [minutes]:

    For me the idea is to find the IP by MAC address .
    Nothing can be combined in the router .
    This code in the link does not find https://www.arduino.cc/en/Reference/EthernetGatewayIP
  • #7 19241734
    khoam
    Level 42  
    klon111 wrote:
    This code in the link does not find https://www.arduino.cc/en/Reference/EthernetGatewayIP
    .
    In this code, there is a 'hardcoded' IP address 10.0.0.177 assigned to the Arduino board with Ethernet, but it may not be correct i.e. incompatible with the IP subnet that the RPI serves. What IP address does the router have on the RPI?
  • #8 19241739
    karwo
    Level 31  
    klon111 wrote:
    For me, the idea is to find the IP by MAC address .
    .
    But why do you need this? After all, every time you restart the router there will be a different IP on your server.
    In your server, set a fixed IP from the router pool - you will always have the same IP.
  • #10 19241780
    cysiekw
    Level 42  
    Advanced network settings, see if you have static for dhcp there
  • #12 19241833
    klon111
    Level 11  
    cysiekw wrote:
    Advanced network settings see if you have static for dhcp there
    .

    dhcp - no such tab exists
    this router is good for scrap
  • #14 19242484
    klon111
    Level 11  
    Thanks for your help ex-or after setting on osmc the address is ok
  • #15 19260780
    JacekCz
    Level 42  
    klon111 wrote:
    cysiekw wrote:
    Advanced network settings see if you have static for dhcp there
    .

    dhcp - no such tab exists
    this router is good for scrap
    .

    You are rambling
    page 38
    (I agree, it is not traditionally designed)

    Added after 15 [minutes]:

    EDIT:

    and information as in the title is displayed (on Windows)
    Code: Bash
    Log in, to see the code
    .

    and before that, it may be helpful to "annotate" all hosts on the local network with 255 (or respectively) on all zeros of the mask (let's assume the mask is a.b.c.0)
    That is, in other words, renewing the arp tables

    Code: Bash
    Log in, to see the code

Topic summary

The discussion revolves around finding the IP address of an Arduino device when only the MAC address is known, particularly in a scenario where the router frequently changes IP addresses and lacks the option to assign static IPs to MAC addresses. Users suggest assigning a fixed IP address to the Arduino from the router's DHCP pool, ensuring it does not conflict with other devices. The D-Link DWR-116 router is specifically mentioned, with users discussing the limitations of its DHCP settings. Some users recommend using ARP commands to identify devices on the network and suggest configuring the Raspberry Pi to use a static IP address within the DHCP range. The conversation highlights the importance of network configuration for maintaining consistent device connectivity.
Summary generated by the language model.
ADVERTISEMENT