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

**URL:** <https://forum.gitea.com/t/can-connect-to-ui-on-localhost-but-not-on-127-0-0-1/7282>\
**Category:** Install/Maintain/Configure\
**Created:** [May 16, 2023, 8:01am UTC](https://forum.gitea.com/t/can-connect-to-ui-on-localhost-but-not-on-127-0-0-1/7282 "2023-05-16T08:01:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inci](https://avatars.discourse-cdn.com/v4/letter/i/e47c2d/32.png) [@Inci](https://forum.gitea.com/u/Inci)\
**Post date:** [May 16, 2023, 8:01am UTC](https://forum.gitea.com/t/can-connect-to-ui-on-localhost-but-not-on-127-0-0-1/7282/1 "2023-05-16T08:01:21Z")

</div>

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/](http://prod-gitea:3001/)  
DISABLE\_SSH = true  
SSH\_PORT = 22  
LFS\_START\_SERVER = true  
LFS\_JWT\_SECRET = ‘’  
OFFLINE\_MODE = false
