You are not logged in.

#1 2023-11-04 15:29:09

9acca9
Member
Registered: 2017-02-03
Posts: 51

The router cant connect to itself (ip public)

HI.
I have a domain name like..... mydomain.com pointing to my ip public.
The router have a port fordwarding pointing to the server (192.168.0.166:6875).
In my internal network i have a server with several services.

One of the services need a domain name to work properly. So, i config that service with the adecuated domian name and port. Like mydomain.com:6875
if i try to reach that service from OUTSIDE my network, i can!!!works perfect!!!
but.................. if i try to reach that service from INSIDE i cant. I mean, it is like if the router cant connect to itself in the ip public.

What i can do to fix this?
By the way, my router is very limited (is the router of the internet company), does not have NAT LOOPBACK.
There is a way i can bypass this problem?

Thanks.

Last edited by 9acca9 (2023-11-04 15:30:23)

Offline

#2 2023-11-04 17:30:02

seth
Member
Registered: 2012-09-03
Posts: 60,901

Re: The router cant connect to itself (ip public)

By the way, my router is very limited (is the router of the internet company), does not have NAT LOOPBACK.
There is a way i can bypass this problem?

Did you try to use eg. /etc/hosts to resolve the public domain to the LAN IP?
(If you're using a local DNS, you can also handle that there)

Online

#3 2023-11-04 21:45:46

9acca9
Member
Registered: 2017-02-03
Posts: 51

Re: The router cant connect to itself (ip public)

... i forget /etc/hosts!!!!!!! Thanks!

Offline

#4 2023-11-04 21:49:50

seth
Member
Registered: 2012-09-03
Posts: 60,901

Re: The router cant connect to itself (ip public)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB