Port Forwarding of Websockets over the same port as HTTP

Hi All.

I have setup a Thingsboard server on a my local lan. I have created a Dashboard that shows telemetry and all works fine inside my local lan.
The server runs on port 8080. I want to get to this same Dashboard from outside my local LAN. I have set-up a firewall rule to forward 9090 on my external IP to the thingsboard server 8080 on my local lan. Now I get the HTML from the server, but the widgets gets its data via websockets that run on the same port as the http. The widgets is not getting its data. How do I set-up the router for this to work ?

Why not 8080 to 8080?


How do I set-up the router for this to work ?

Run the server locally on port 9090 or set up a reverse forward proxy with proper rewrite/translation rules. The MikroTik router cannot fix this.

Turns out it was never the router. It is the proxy server at work that is blocking websockets. If I connect to my house over 3G cell network all is fine.