Is it possible to see my external IP without making an outbound web request?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












If your connection is NAT'ed, is it possible to see your external IP without making an outbound web request?



Any OS (Windows, Linux, etc.) is fine.










share|improve this question



















  • 1




    Are you only trying to avoid HTTP, or are you trying to avoid sending any outgoing traffic at all? The only universal solutions involve sending some kind of outgoing traffic, but it doesn't have to be HTTP.
    – Spiff
    3 hours ago










  • This was more of just a hypothetical, I didn't want to make any outbound traffic at all.
    – Axel Persinger
    3 hours ago










  • Are you saying that your network/router is behind a Enterprise grade NAT setup (ie. it is getting a private IP address from your ISP)? If so, there is no way I have think of that you can find the public IP address without something reaching out to the public network and essentially "looking back" like whatsmyip.com or similar services.
    – acejavelin
    3 hours ago














up vote
2
down vote

favorite












If your connection is NAT'ed, is it possible to see your external IP without making an outbound web request?



Any OS (Windows, Linux, etc.) is fine.










share|improve this question



















  • 1




    Are you only trying to avoid HTTP, or are you trying to avoid sending any outgoing traffic at all? The only universal solutions involve sending some kind of outgoing traffic, but it doesn't have to be HTTP.
    – Spiff
    3 hours ago










  • This was more of just a hypothetical, I didn't want to make any outbound traffic at all.
    – Axel Persinger
    3 hours ago










  • Are you saying that your network/router is behind a Enterprise grade NAT setup (ie. it is getting a private IP address from your ISP)? If so, there is no way I have think of that you can find the public IP address without something reaching out to the public network and essentially "looking back" like whatsmyip.com or similar services.
    – acejavelin
    3 hours ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











If your connection is NAT'ed, is it possible to see your external IP without making an outbound web request?



Any OS (Windows, Linux, etc.) is fine.










share|improve this question















If your connection is NAT'ed, is it possible to see your external IP without making an outbound web request?



Any OS (Windows, Linux, etc.) is fine.







networking nat ip-address






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago









Twisty Impersonator

16.4k126090




16.4k126090










asked 4 hours ago









Axel Persinger

213




213







  • 1




    Are you only trying to avoid HTTP, or are you trying to avoid sending any outgoing traffic at all? The only universal solutions involve sending some kind of outgoing traffic, but it doesn't have to be HTTP.
    – Spiff
    3 hours ago










  • This was more of just a hypothetical, I didn't want to make any outbound traffic at all.
    – Axel Persinger
    3 hours ago










  • Are you saying that your network/router is behind a Enterprise grade NAT setup (ie. it is getting a private IP address from your ISP)? If so, there is no way I have think of that you can find the public IP address without something reaching out to the public network and essentially "looking back" like whatsmyip.com or similar services.
    – acejavelin
    3 hours ago












  • 1




    Are you only trying to avoid HTTP, or are you trying to avoid sending any outgoing traffic at all? The only universal solutions involve sending some kind of outgoing traffic, but it doesn't have to be HTTP.
    – Spiff
    3 hours ago










  • This was more of just a hypothetical, I didn't want to make any outbound traffic at all.
    – Axel Persinger
    3 hours ago










  • Are you saying that your network/router is behind a Enterprise grade NAT setup (ie. it is getting a private IP address from your ISP)? If so, there is no way I have think of that you can find the public IP address without something reaching out to the public network and essentially "looking back" like whatsmyip.com or similar services.
    – acejavelin
    3 hours ago







1




1




Are you only trying to avoid HTTP, or are you trying to avoid sending any outgoing traffic at all? The only universal solutions involve sending some kind of outgoing traffic, but it doesn't have to be HTTP.
– Spiff
3 hours ago




Are you only trying to avoid HTTP, or are you trying to avoid sending any outgoing traffic at all? The only universal solutions involve sending some kind of outgoing traffic, but it doesn't have to be HTTP.
– Spiff
3 hours ago












This was more of just a hypothetical, I didn't want to make any outbound traffic at all.
– Axel Persinger
3 hours ago




This was more of just a hypothetical, I didn't want to make any outbound traffic at all.
– Axel Persinger
3 hours ago












Are you saying that your network/router is behind a Enterprise grade NAT setup (ie. it is getting a private IP address from your ISP)? If so, there is no way I have think of that you can find the public IP address without something reaching out to the public network and essentially "looking back" like whatsmyip.com or similar services.
– acejavelin
3 hours ago




Are you saying that your network/router is behind a Enterprise grade NAT setup (ie. it is getting a private IP address from your ISP)? If so, there is no way I have think of that you can find the public IP address without something reaching out to the public network and essentially "looking back" like whatsmyip.com or similar services.
– acejavelin
3 hours ago










2 Answers
2






active

oldest

votes

















up vote
3
down vote













There are a few ways that work with some NATs but nothing that's guaranteed to work everywhere.



I believe uPnP, NAT-PMP, and PCP (Universal Plug And Play, NAT Port Mapping Protocol, and the Port Control Protocol) all have ways to ask a compliant NAT gateway what the public address is, but not all NATs support these protocols. Support is more common in home gateway routers than in corporate or carrier-grade NAT solutions.



When you find yourself behind a NAT, the only sure way to see what public IP address it is translating your traffic into is to send some outgoing traffic to some public host that will report back, in a way the NAT won't translate, what address your traffic appeared to come from. Using a web based service is one way, but you could also do it by, say, SSHing into a cloud server instance and seeing where sshd says your SSH session is coming from.






share|improve this answer



























    up vote
    1
    down vote













    If your computer is behind NAT, it is possible for you to see the external IP
    of your router, but you need administrative access to the router.



    The router knows your external IP address, so by accessing its configuration
    page you can find that IP address.



    Any other way will require making an external Web request.






    share|improve this answer






















    • This seems like it's answering a different question than OP is asking.
      – Spiff
      3 hours ago










    • @Spiff: I have re-written my answer. A comment would have been enough to signal that misunderstanding.
      – harrymc
      3 hours ago










    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "3"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1371963%2fis-it-possible-to-see-my-external-ip-without-making-an-outbound-web-request%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    There are a few ways that work with some NATs but nothing that's guaranteed to work everywhere.



    I believe uPnP, NAT-PMP, and PCP (Universal Plug And Play, NAT Port Mapping Protocol, and the Port Control Protocol) all have ways to ask a compliant NAT gateway what the public address is, but not all NATs support these protocols. Support is more common in home gateway routers than in corporate or carrier-grade NAT solutions.



    When you find yourself behind a NAT, the only sure way to see what public IP address it is translating your traffic into is to send some outgoing traffic to some public host that will report back, in a way the NAT won't translate, what address your traffic appeared to come from. Using a web based service is one way, but you could also do it by, say, SSHing into a cloud server instance and seeing where sshd says your SSH session is coming from.






    share|improve this answer
























      up vote
      3
      down vote













      There are a few ways that work with some NATs but nothing that's guaranteed to work everywhere.



      I believe uPnP, NAT-PMP, and PCP (Universal Plug And Play, NAT Port Mapping Protocol, and the Port Control Protocol) all have ways to ask a compliant NAT gateway what the public address is, but not all NATs support these protocols. Support is more common in home gateway routers than in corporate or carrier-grade NAT solutions.



      When you find yourself behind a NAT, the only sure way to see what public IP address it is translating your traffic into is to send some outgoing traffic to some public host that will report back, in a way the NAT won't translate, what address your traffic appeared to come from. Using a web based service is one way, but you could also do it by, say, SSHing into a cloud server instance and seeing where sshd says your SSH session is coming from.






      share|improve this answer






















        up vote
        3
        down vote










        up vote
        3
        down vote









        There are a few ways that work with some NATs but nothing that's guaranteed to work everywhere.



        I believe uPnP, NAT-PMP, and PCP (Universal Plug And Play, NAT Port Mapping Protocol, and the Port Control Protocol) all have ways to ask a compliant NAT gateway what the public address is, but not all NATs support these protocols. Support is more common in home gateway routers than in corporate or carrier-grade NAT solutions.



        When you find yourself behind a NAT, the only sure way to see what public IP address it is translating your traffic into is to send some outgoing traffic to some public host that will report back, in a way the NAT won't translate, what address your traffic appeared to come from. Using a web based service is one way, but you could also do it by, say, SSHing into a cloud server instance and seeing where sshd says your SSH session is coming from.






        share|improve this answer












        There are a few ways that work with some NATs but nothing that's guaranteed to work everywhere.



        I believe uPnP, NAT-PMP, and PCP (Universal Plug And Play, NAT Port Mapping Protocol, and the Port Control Protocol) all have ways to ask a compliant NAT gateway what the public address is, but not all NATs support these protocols. Support is more common in home gateway routers than in corporate or carrier-grade NAT solutions.



        When you find yourself behind a NAT, the only sure way to see what public IP address it is translating your traffic into is to send some outgoing traffic to some public host that will report back, in a way the NAT won't translate, what address your traffic appeared to come from. Using a web based service is one way, but you could also do it by, say, SSHing into a cloud server instance and seeing where sshd says your SSH session is coming from.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 3 hours ago









        Spiff

        75.1k10114156




        75.1k10114156






















            up vote
            1
            down vote













            If your computer is behind NAT, it is possible for you to see the external IP
            of your router, but you need administrative access to the router.



            The router knows your external IP address, so by accessing its configuration
            page you can find that IP address.



            Any other way will require making an external Web request.






            share|improve this answer






















            • This seems like it's answering a different question than OP is asking.
              – Spiff
              3 hours ago










            • @Spiff: I have re-written my answer. A comment would have been enough to signal that misunderstanding.
              – harrymc
              3 hours ago














            up vote
            1
            down vote













            If your computer is behind NAT, it is possible for you to see the external IP
            of your router, but you need administrative access to the router.



            The router knows your external IP address, so by accessing its configuration
            page you can find that IP address.



            Any other way will require making an external Web request.






            share|improve this answer






















            • This seems like it's answering a different question than OP is asking.
              – Spiff
              3 hours ago










            • @Spiff: I have re-written my answer. A comment would have been enough to signal that misunderstanding.
              – harrymc
              3 hours ago












            up vote
            1
            down vote










            up vote
            1
            down vote









            If your computer is behind NAT, it is possible for you to see the external IP
            of your router, but you need administrative access to the router.



            The router knows your external IP address, so by accessing its configuration
            page you can find that IP address.



            Any other way will require making an external Web request.






            share|improve this answer














            If your computer is behind NAT, it is possible for you to see the external IP
            of your router, but you need administrative access to the router.



            The router knows your external IP address, so by accessing its configuration
            page you can find that IP address.



            Any other way will require making an external Web request.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 3 hours ago

























            answered 3 hours ago









            harrymc

            244k10254537




            244k10254537











            • This seems like it's answering a different question than OP is asking.
              – Spiff
              3 hours ago










            • @Spiff: I have re-written my answer. A comment would have been enough to signal that misunderstanding.
              – harrymc
              3 hours ago
















            • This seems like it's answering a different question than OP is asking.
              – Spiff
              3 hours ago










            • @Spiff: I have re-written my answer. A comment would have been enough to signal that misunderstanding.
              – harrymc
              3 hours ago















            This seems like it's answering a different question than OP is asking.
            – Spiff
            3 hours ago




            This seems like it's answering a different question than OP is asking.
            – Spiff
            3 hours ago












            @Spiff: I have re-written my answer. A comment would have been enough to signal that misunderstanding.
            – harrymc
            3 hours ago




            @Spiff: I have re-written my answer. A comment would have been enough to signal that misunderstanding.
            – harrymc
            3 hours ago

















             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1371963%2fis-it-possible-to-see-my-external-ip-without-making-an-outbound-web-request%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            Installing NextGIS Connect into QGIS 3?

            One-line joke