Community discussions

 
faxxe
just joined
Topic Author
Posts: 5
Joined: Wed Dec 12, 2018 1:46 pm

Reach domain name from inside LAN

Fri Jan 18, 2019 8:15 pm

Hello from Austria.....
This is my first entry here but with a read a ot and so far my system works well. 1100ahx4

My question is:
i have a domain as example : www.xyz.com
With my mobile phone i can connect to my webcam by: wwww.xyz.com:1234
To have this there is a dst-NAT rule in my router with dst-port 1234 to the local ip:192.168.1.1 dport 1234
This works well. Normall port forwarding

But:
If my mobile phone is in the LAN and i enter the same webcam adress wwww.xyz.com:1234 i cant reach the cam.
But if i enter the correct local LAN ip for the cam 192.168.1.1:1234 i can reach it

This means, with my public domain name i cant reach any device inside my LAN. From inside the LAN
I guess this is solvable but how? Maybe with dstnat ???

Thanks for your hints
faxxe
 
anav
Forum Guru
Forum Guru
Posts: 2936
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada

Re: Reach domain name from inside LAN

Sat Jan 19, 2019 3:32 pm

You need to sacrifice the blood of a king, ooops sorry thats for the Lord of Light and Game of Thrones, what you need is something called Hairpin NAT.

Its a specific setup so that an admin can ensure that people behind the router can access a device behind the router in the same manner that someone outside the router also accesses the device.
Just google it or do a search on the forum, its a common request
I'd rather manage rats than software. Follow my advice at your own risk! (Sob & mkx forced me to write that!)
 
faxxe
just joined
Topic Author
Posts: 5
Joined: Wed Dec 12, 2018 1:46 pm

Re: Reach domain name from inside LAN

Sun Feb 03, 2019 9:32 am

Thanks anav, problem solved with hairpin nat :)

Regards,
faxxe

Who is online

Users browsing this forum: No registered users and 16 guests