Can connect to UI on "localhost" but not on "127.0.0.1"

I’ve set up a mostly default gitea setup, and can connect fine on “localhost” but if i try to connect via “127.0.0.1” I get a “127.0.0.1 didn’t send any data”/ERR_EMPTY_RESPONSE error.

I have tried various app.ini files, but nothing has worked. Currently it is as below. Any help would be appreciated, happy to provide any logs etc required.

[server]
PROTOCOL = http
HTTP_ADDR = 0.0.0.0
HTTP_PORT = 3001
SSH_DOMAIN = prod-gitea
DOMAIN = prod-gitea
ROOT_URL = http://prod-gitea:3001/
DISABLE_SSH = true
SSH_PORT = 22
LFS_START_SERVER = true
LFS_JWT_SECRET = ‘’
OFFLINE_MODE = false