Community discussions

MikroTik App
 
User avatar
sernuzh
just joined
Topic Author
Posts: 1
Joined: Fri Jun 10, 2022 7:10 pm

Access public IP from local ip

Fri Jun 10, 2022 7:27 pm

HI!
It's nice to be here. I have such a question , and very kindly ask for detailed explain. I have a router Mikrotik with public IP , lets say 5.5.5.5. As web developer I was told to install Moodle education cms. And.. This installed must be accesable from local net and from internet. It should be one url. I did it on the Ubuntu in local network. Moodle has one feature. It has config file where store one access url and any other url which tries to access moodle will be rejected. I forwarded port 8080 so that from internet I can reach my moodle by address http://5.5.5.5:8080/moodle and this url is written in config file. But. From Localhost I have direct path to site http://localhost/moodle and it's not working. Just shows error. If I change config file I have access from local network but loose from network. So i want to know how can I access public IP wih port 8080 - 5.5.5.5:8080 from local network ip such as 192.168.0.122 ? This router is dhcp server for all local computers.
Thank you all who'll answer.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10234
Joined: Mon Jun 08, 2015 12:09 pm

Re: Access public IP from local ip

Fri Jun 10, 2022 7:43 pm

Search the forum for "hairpin NAT".

Who is online

Users browsing this forum: aivik, jajo10, johnson73, Kuwait and 100 guests