Access web server from outside

Hello,
Please help me. I need to configure a web server, running on Ubuntu, and make it accessible to public. I can access the website using its local IP, 192.168.100.4.
However, I can't access it using public IP.
We are using MikroTik router and I tried portforwarding but no success.

This is the portforwarding rule I have configured :
General-------------------------------------------
Chanin: dstnat
protocol: tcp
dst address: outside IP
dst port: 80

Action
Action: dst-nat
to addresses: 192.168.10.8
to ports: 80

A. You do DSTNAT to 192.168.10.8 not to 192.168.10.4.

B. To access server from LAN using WAN address you need to configure https://wiki.mikrotik.com/wiki/Hairpin_NAT

My mistake, actually to address was 192.168.100.4

Problem was here, “When a client on the same internal network as the web server requests a connection to the web server’s public IP address, the connection breaks.”

Thank you so much for the link

If you have users that you want to connect to your server and NOT direct via LANIP but from the WAN side…
Then you have to use hairpin nat rules as noted.
Or you could simply move the server to a different subnet and then it would work.

For hairpin nat one needs to know if your ISP or WANIP is a dynamic or static fixed IP???