Recently my ISP gave my home a new IP address. I run a program on the Raspberry Pi that connects to some external APIs that have my home IP address whitelisted. After the IP change, a few of those APIs have started to report "IP forbidden".
This is funny, because when I run the same program with the same configuration from my laptop, connecting from the same home network, I do not get that error. How can it be that external servers recognize my laptop as operating from my home IP, but not my Pi?
I'm not so well known with whatever might be cached internally on the Pi, but I do know that the public IP address must be the same when connecting to the outside world through the same modem. Also when I make a request to a public server which gives me back my IP address, it does give back the home IP address.
I am running fail2ban. No clue if that could be setting some rules that would influence this. As said before, I have no idea how that could influence the public IP address, but who knows. I am not a connaisseur.
Ethernet device has no hostname
Mildly interesting observation: my ethernet device in my router shows up without hostname; only the WiFi device is called "raspberrypi". When I disable WiFi, I cannot find the Pi by hostname. However, re-enabling it makes it findable again.
Any thoughts/advice on what could be up here causing my Pi to not be recognized by the external servers to operate on the same IP as the rest of my house, would be much appreciated. My next step would be to reinstall the Pi from scratch to see if that helps. The Pi runs Raspbian.