Community discussions

MikroTik App
 
TinkerMan
just joined
Topic Author
Posts: 3
Joined: Wed Oct 17, 2018 5:38 pm

Port Forwarding of Websockets over the same port as HTTP

Wed Oct 17, 2018 6:02 pm

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 ?
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 897
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: Port Forwarding of Websockets over the same port as HTTP

Thu Oct 18, 2018 10:12 am

I have set-up a firewall rule to forward 9090 on my external IP to the thingsboard server 8080 on my local lan.

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.
 
TinkerMan
just joined
Topic Author
Posts: 3
Joined: Wed Oct 17, 2018 5:38 pm

Re: Port Forwarding of Websockets over the same port as HTTP  [SOLVED]

Sat Oct 20, 2018 1:10 am

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.

Who is online

Users browsing this forum: alibloke, unhuzpt and 96 guests