Ask Your Question
1

How to connect to rosbridge_suite/roslibjs via WAN IP

asked 2015-09-24 13:14:47 -0600

fabian77 gravatar image

Hi there,

i was trying out the following tutorial: http://wiki.ros.org/roslibjs/Tutorials/BasicRosFunctionality

roslaunch rosbridge_server rosbridge_websocket.launch was started with now errors

I have nginx as webserver and everything works fine from within the local network, after changing

var ros = new ROSLIB.Ros({
url : 'ws://localhost:9090'});

to my local IP in the corresponding html-file from the tutorial:

var ros = new ROSLIB.Ros({
url : 'ws://192.168.2.114:9090'});

That way everything is fine and working from within the local network. The html from the example is working, its listening to topic /listener and publishing to /cmd_vel.

So I changed the IP in the html-file to my WAN IP (the one provided from my Provider) and tried to reach the html-file over WAN-Adress from outside the local network instead. But that doesn't work with the html-file from the tutorial. (The Webserver is still reachable, so WAN IP must be correct).

I allready tryed to forward port 9090 within my router settings, like i did for port 80 from the webserver. With no success.

I also know, that my router doesn't support NAT-Loopback and so i'm connecting to the webserver from another network.

Does anybody know how i can connect to ROS with that tutorial from external network via internet or what has to be changed that it's working?

Thanks Fabian

edit retag flag offensive close merge delete

Comments

seems as it is working now with no changes. don't even sure if i have to forward port 9090 in the router settings really. even works with my static adress i got over dyndns ( no-ip.com ). Thanks for your audience so long!

fabian77 gravatar imagefabian77 ( 2015-09-24 17:11:15 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-09-24 13:49:02 -0600

It's possible your ISP blocks port 9090. You can use a tool like this to check.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-09-24 13:14:47 -0600

Seen: 464 times

Last updated: Sep 24 '15