# Gitea: cannot authenticate user

**URL:** <https://drone.discourse.group/t/gitea-cannot-authenticate-user/10055>\
**Category:** Drone Support\
**Created:** [November 15, 2018, 4:57am UTC](https://drone.discourse.group/t/gitea-cannot-authenticate-user/10055 "2018-11-15T04:57:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chakadee](https://avatars.discourse-cdn.com/v4/letter/c/a5b964/32.png) [@chakadee](https://drone.discourse.group/u/chakadee)\
**Post date:** [November 15, 2018, 4:57am UTC](https://drone.discourse.group/t/gitea-cannot-authenticate-user/10055/1 "2018-11-15T04:57:50Z")

</div>

I am unable to login to drone using my gitea username/password. I get the error below.

{“level”:“warn”,“ip”:“172.17.0.1”,“path”:"/login",“method”:“POST”,“request\_id”:“bfmfdhv5i1r8mfqi3b5g”,“error”:“Get [https://localhost:3000/api/v1/users/gitadmin/tokens:](https://localhost:3000/api/v1/users/gitadmin/tokens:) dial tcp 127.0.0.1:3000: connect: connection refused”,“time”:“2018-11-15T04:32:07Z”,“message”:“cannot authenticate user”}

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [November 15, 2018, 5:01am UTC](https://drone.discourse.group/t/gitea-cannot-authenticate-user/10055/2 "2018-11-15T05:01:25Z")

</div>

> [@On another topic](https://drone.discourse.group/t/2986/1):
>
> 127.0.0.1:3000

this is because your gitea address is `127.0.0.1:3000` which is not accessible outside of the drone container, since containers have isolated network space.

---

<div class="post-metadata">

**Author:** ![chakadee](https://avatars.discourse-cdn.com/v4/letter/c/a5b964/32.png) [@chakadee](https://drone.discourse.group/u/chakadee)\
**Post date:** [November 15, 2018, 5:21am UTC](https://drone.discourse.group/t/gitea-cannot-authenticate-user/10055/3 "2018-11-15T05:21:11Z")

</div>

Works after changing the ip address to a 192.168.0.xxx. Thank you very much.
