Publishing WebApp through static IP

Hey everyone,

I’ve searched everywhere on the internet but I haven’t found any solution yet on my problem.

In my company we are running a webapp locally on a Ubuntu Server 22.04 with IP 192.168.4.150. I want to publish the webapp online through our static IP that our ISP provides us. Our network topology is consisted of:

  1. ISP’s router with the static IP
  2. ISP’s 5G mobile router for failover (it doesn’t have any role yet)
  3. Mikrotik that manages the network, firewalls etc.
  4. Switch for PCs

We have Dell Precision 7820 server that runs ESXI 8 and hosts our VMs including the Ubuntu instance. I’ve tried every possible combination of modifying WinBox rules along with the config files of the webapp, ports, webserver name, IPs, aliases etc. I want to work with port 8080 so when I browser on STATIC_IP:8080, I get the webapp. Firewalls are set properly allowing traffic through 8080. I see some packets on the rule of WInBox when trying to enter the webapp but the url won’t work.

Please feel free to ask me to fill you with more info, I’m just keeping the description short.

Thanks in advance.

A good start would be to kindly post the config of the router:

/export file=anynameyouwish (minus sensitive info)

I assume the ISP’s router is doing Nat?

Or is it handing the IP address off to the Mikrotik in some fashion?

If ISP router is doing NAT, it will also need a port forward (likely to the Mikrotik, possibly direct to the web server)

The web app server needs to know it is running on port 8080, or more usually actually be running on port 8080
(as well as any other ports it needs to listen on)
Otherwise, any redirects and relative URL’s it sends will redirect to the port it thinks it’s listening on and getting traffic on…