# VM URSim + ROS2 foxy. Connection problem

**URL:** <https://forum.universal-robots.com/t/vm-ursim-ros2-foxy-connection-problem/27009>\
**Category:** ROS\
**Created:** [February 24, 2023, 11:32am UTC](https://forum.universal-robots.com/t/vm-ursim-ros2-foxy-connection-problem/27009 "2023-02-24T11:32:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon87561307](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@anon87561307](https://forum.universal-robots.com/u/anon87561307)\
**Post date:** [February 24, 2023, 11:32am UTC](https://forum.universal-robots.com/t/vm-ursim-ros2-foxy-connection-problem/27009/1 "2023-02-24T11:32:42Z")

</div>

Hi everyone,

I am trying to develop an application to control the UR10e using ROS2 foxy installed on Ubuntu 20.04 LTS.

1. I built the [ROS2 driver](https://github.com/UniversalRobots/Universal_Robots_ROS2_Driver) (foxy branch) in my ros2 workspace and I am trying to connect it to the URSim using the External Control 1.0.5 URCap.  
(The URSim version is 5.13 and it is running on a VM).

2. I installed the External Control URCap and set up the URSim by inserting my Host PC IP address.

3. My Host PC (where the ros2 application should run) and the VM are correctly communicating and I could check it by using: `ping + IP_address_host_pc` on the VM and `ping + IP_address_guest` on the host PC.

4. Then I unlock the 50002 custom port by using `nc -lk 50002`.

The problem comes when I run the program on the URSim and the launch file through:  
`ros2 launch ur_bringup ur_control.launch.py ur_type:=ur10e robot_ip:=192.168.1.68 use_fake_hardware:=true launch_rviz:=false`

the URSim shows me the window “Starting Program, please wait…” but then it remains like this and does not happen a thing:

Actually, even when I do not run the ros2 launch file I still get the same issue.

![WhatsApp Image 2023-02-24 at 12.23.56](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/1/10ebdb1e5d083c2533a21fdfe32b9b0fada5f651.jpeg)

The IP addresses are:  
My host PC: 192.168.1.62  
VM: 192.168.1.68

The VM is running with a Bridged Adapter.
