ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It's solved.
The problem was in the code of " ros.connect('ws://' + location.hostname + ':9090'); ".
In this code, my web client issues websocket connection to port :9090. However since my client is in WAN and using http connection, this websocket connection is also sent to port :80 not :9090. Then I needed to make reverse proxy in the server side.
Eventually, I used Nginx for constructing reverse proxy to send "http connection" to :8085 and send "websocket connection" to :9090. After that, I found rosbridge has a bug of receiving websocket via reverse proxy websocket_external_port default setting.

After fixing those things, "Topic publishing via internet using web server" is working now.