Cannot access server with public ip/domain within the same network

Hi guys,

I’m very new to networking (Software engineering background) and learning how to do basic networking.

So we have this local server with a static (public) IP.

I’ve forwarded ports in the Mikrotik router, so we can access it via the public ip / domain name from external networks. (works perfectly)

But when I’m on the same network, I cannot access it via the domain name or the public ip (only private ip works)

Is there a way to make the domain name / public ip work within our local network as well?

Thanks in advance.
port-80.png

If the router is your DNS server or if you have a DNS server in your network and you have access to it add a A record for the hostname/domain name that points to the internal IP address of the server.

Alternatively you can try to add another port forwarding rule and set the In.Interface to your bridge interface or local LAN. (You should be able to leave In.Interface blank as well.)

Though I like the approach of Sarel0092, there is another option: Hairpin NAT:
http://forum.mikrotik.com/t/hairpin-nat-the-easy-way/146718/28

This was written JUST FOR YOU!!!
https://forum.mikrotik.com/viewtopic.php?t=179343