# Need help to access apps running on localhost

**URL:** <https://community.traefik.io/t/need-help-to-access-apps-running-on-localhost/14096>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [April 10, 2022, 1:04pm UTC](https://community.traefik.io/t/need-help-to-access-apps-running-on-localhost/14096 "2022-04-10T13:04:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morakhiyasaiyam](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/morakhiyasaiyam/32/5204_2.png) [@Morakhiyasaiyam](https://community.traefik.io/u/Morakhiyasaiyam)\
**Post date:** [April 10, 2022, 1:04pm UTC](https://community.traefik.io/t/need-help-to-access-apps-running-on-localhost/14096/1 "2022-04-10T13:04:56Z")

</div>

Hey there,  
I am successfully running traefik in docker and able to access my deployed apps with defining labels to apps and then accessing sites with duckdns .  
I have two problems acme couldn't achieve SSL certificate so I achieved with Lego acme but how to add those certificates with traefik  
And I am successfully accessing those app with those duckdns domain from outside and local machine

But I am not able to access site direct from localhost so I can manage site localy it is giving 404 page not found error  
And if I add my domain example [abc.com](http://abc.com) to localhost or 127.0.0.1 in hosts file then also it is not working

But curl -H host:abc.com [https://127.0.0.1](https://127.0.0.1) can access site  
So how can I tell my browser to access that domain with localhost on local pc ?

---

<div class="post-metadata">

**Author:** ![jakubhajek](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/jakubhajek/32/3389_2.png) [@jakubhajek](https://community.traefik.io/u/jakubhajek)\
**Post date:** [April 11, 2022, 9:39am UTC](https://community.traefik.io/t/need-help-to-access-apps-running-on-localhost/14096/2 "2022-04-11T09:39:31Z")

</div>

Hey!

I would consider trying a simple DNS wildcard service that maps to any IP address e.g. [nip.io](http://nip.io). With that service, you can create to have the following records such as: `foo.127.0.0.1.nip.io` or `bar.127.0.0.1.nip.io`.

Hope that helps.

---

<div class="post-metadata">

**Author:** ![Morakhiyasaiyam](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/morakhiyasaiyam/32/5204_2.png) [@Morakhiyasaiyam](https://community.traefik.io/u/Morakhiyasaiyam)\
**Post date:** [April 11, 2022, 1:33pm UTC](https://community.traefik.io/t/need-help-to-access-apps-running-on-localhost/14096/3 "2022-04-11T13:33:10Z")

</div>

@jakubhajek Yes i got it but how to access those sites locally  
What I mean is i can access portainer directly with localhost:9000 with direct access to that local port  
Now if i loose internet than also i can operate that site now  
I can understand that traefik is working with sender's queried web address when requesting so it is giving assigned web app with that address but for that i have to access to internet now if i want to access that site locally then also i have to provide that adress to access because i didnt opened port for portainer to work with traefik so if i am accessing from pc on which traefik and portainer installed how can i directly access like using localhost sites with open port ?

---

<div class="post-metadata">

**Author:** ![Morakhiyasaiyam](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/morakhiyasaiyam/32/5204_2.png) [@Morakhiyasaiyam](https://community.traefik.io/u/Morakhiyasaiyam)\
**Post date:** [April 11, 2022, 1:43pm UTC](https://community.traefik.io/t/need-help-to-access-apps-running-on-localhost/14096/4 "2022-04-11T13:43:47Z")

</div>

I.e like how i curl accessed site [abc.com](http://abc.com) from 127.0.0.1 with host adress provided ? Can i do same with web browser ? Like traefik redirect me to that site on 127.0.0.1 if i am accessing site from local pc on which they both are installed
