Forums

is it possible to get a fixed ip address?

right now im the ip address of the server is changing every few hours, is there anyway to have a one ip address? and if not, what is the range of ip addresses? I need it for whitelisting

No, it's not possible to get a fixed ip address. You can use ipify to look up the ip address of the machine you're on and then use that to update your whitelist.

That doesn't work (now?) on pythonanywhere, this is the result:

from ipify import get_ip

Result:

ImportError: cannot import name 'linux_distribution' from 'platform' (/usr/lib/python3.8/platform.py)

What is the full traceback?