Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    HTTP query to get WAN inteface public IP address w/o using external service?

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 258 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      fabrizior
      last edited by

      Is there a way to query the WAN public IP addresses via HTTP internally and anonymously without resorting to use an external service like https://whatsmyip.com?

      I have some internal services (for better or worse) that want to phone home "just" to get the WAN IP for the running service instance. There's an ability to override the URL used for that lookup.

      I'd rather have it request an internal URL and not resort to any external requests either directly or via proxy.

      1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        I guess it has to match the format required by those services?

        There's nothing like that built into pfSense but I could imagine something that run on an internal host just to query the WAN IP and then serve it up as those services expect.
        UPnP should be able to pull the external IP from pfSense if it's enabled.
        Or maybe and SSH command.

        Steve

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.