Unity-Technologies/Unity-Robotics-Hub

Publisher Demo Exception: System.Net.Sockets.SocketException (0x80004005)

ndaley7 opened this issue · 0 comments

Describe the bug
Good Afternoon,

I am trying to run the Publisher demo found here

and I receive this error in the unity console:

Connection to 127.0.0.1:20000 failed - System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it.

Hopefully this is just something I am doing wrong, but after going through the troubleshooting instructions (opening the ports, disabling the firewall ect) nothing has changed.

Please see attached screenshots of unity and ros windows.

To Reproduce
Steps to reproduce the behavior:

  1. Run the roslaunch command here with correct ip info typed in
    roslaunch ros_tcp_endpoint endpoint.launch tcp_ip:=127.0.1.20 tcp_port:=20000
  2. Type IP and port info into unity window
  3. Press Play

Console logs / stack traces
Please wrap in triple backticks (```) to make it easier to read.

Expected behavior
Connection between unity and ros machines

Screenshots
2022-03-29 19_25_06-WDDLY-RosTCP Project - SampleScene - PC, Mac   Linux Standalone - Unity 2020 3 2

Screenshot from 2022-03-29 19-09-22

Environment

  • Unity Version: [e.g. Unity 2020.3.26f1 personal]
  • Unity machine OS + version: [e.g. Windows 10]
  • ROS machine OS + version: [e.g. Ubuntu 20.04 LTS, ROS Noetic]
  • ROS–Unity communication: (I'm not sure how to answer this
  • Branch or version: [e.g. v0.7.0]

Please let me know if you have other questions or suggestions.