logo elektroda
logo elektroda
X
logo elektroda

How do I check the current public IP address of a remote location behind a NAT?

albert_slask 195 5
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21720223
    albert_slask
    Level 12  
    Welcome,

    Description: i have an ISP that for individuals does not provide a fixed public IP address service, but a dynamic public IP address. This address is behind a NAT and changes with a certain frequency.

    Can anyone suggest how to check the IP address of a remote location so that I know when it changes and to which one? I have devices and need remote access to them.

    Regards,
    Albert.
  • ADVERTISEMENT
  • #2 21720247
    adamz74
    Level 33  
    You start DDNS and refer by name.

    Greetings!
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #4 21720256
    albert_slask
    Level 12  
    >>21720247 Unfortunately I don't have a computer in that location, so any DynDNS is out. I want to avoid putting a computer there just to check the IP address.
  • ADVERTISEMENT
  • #5 21720273
    adamz74
    Level 33  
    But you probably have your own router? As a rule, it is the one that gets the public address and DDNS is run on it.
  • #6 21720292
    k45i89o98j66
    Level 39  
    Add the following formula to the router in the appropriate place
    Each router has options for ddns noip and similar services.
    albert_slask wrote:
    Unfortunately I don't have a computer at this location, so any ddns is out. I want to avoid putting a computer there just to check the ip address
    .
    You don't need a computer for this.Just need to configure the router.



    Using the example of FunBox 3.0

    FunBox 3.0 panel with Dynamic DNS settings and dropdown list of service providers .



    Specify the supplier and model of the router.



    It is also possible, for example, to place a Synology or Qnap NAS with VPN there and after logging in with VPN to the NAS panel, you can see the address and who is connected to which address via VPN.



    But this is an expensive solution.

    QVPN panel showing VPN user connection and container network interfaces .



    Or add a DDNS or other service on top of it.

    Added after 5 [minutes]: .

    Or else buy the cheapest Raspberry :
    (e.g. Raspberry Pi 3 model B+ WiFi DualBand Bluetooth 1GB RAM)
    Plug in that location and connect via ssh to read the external IP.

    Added after 23 [minutes]: .

    icanhazip.com
    You could use a simple Bash + cron script to send the IPs
    e.g. every hour to email, Telegram, Discord or write to a file on Dropbox/Google Drive.

    or in Python - a simple Python script that sends IPs to Slack/Telegram/Discord at specified intervals.
ADVERTISEMENT