Skip to content
Advertisement

Finding a public facing IP address in Python?

How can I find the public facing IP for my net work in Python?

Advertisement

Answer

This will fetch your remote IP address

JavaScript

If you don’t want to rely on someone else, then just upload something like this PHP script:

JavaScript

and change the URL in the Python or if you prefer ASP:

JavaScript

Note: I don’t know ASP, but I figured it might be useful to have here so I googled.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement