Forums

Is the IP address Static, or Dynamic?

The project I have needs a whitelist of IP addresses that they allow.

Does pythonanywhere have it's own static IP address, is each user given their own IP address, or do these change?

If it is dynamic, is there any way I can get it static? Either by a domain name or by using a VPN?

IP addresses on PythonAnywhere are likely to change. See https://help.pythonanywhere.com/pages/StaticIPForExternalWhitelists/

Hello,

I am considering dynamically but manually changing the IP whitelist. I want to set up a code that notifies me when the IP changes, this code will run in my web app not a scheduled task. I have set up one already that lies on the index view and checks the current IP, then sends me an email with the current IP, whenever a user opens the home page of the site, the code runs. I have been monitoring the IP address for one month now and it has not changed, my question is, based on your previous statistics how often does the IP address change, what is the highest frequency or lowest frequency, and what other factors affect that? is it possible that an IP address stays the same for several months? I just need something to tell my client, we have tried QGtunnell from quotaguard but it is not working, I have now been on this for several weeks it is quite frustrating. My client has talked about moving hosting to somewhere else, but I am really really reluctant to do that because I like the simplicity of pythonanywhere.

There is no real frequency to IP changes. They might change because we need to replace the server that your code is on. They might change because we move web apps around to balance load. They can also be stable for a really long time.