# Connecting ur5e with laptop for external control

**URL:** <https://forum.universal-robots.com/t/connecting-ur5e-with-laptop-for-external-control/29627>\
**Category:** Technical Questions\
**Created:** [July 21, 2023, 9:19am UTC](https://forum.universal-robots.com/t/connecting-ur5e-with-laptop-for-external-control/29627 "2023-07-21T09:19:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon31942935](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@anon31942935](https://forum.universal-robots.com/u/anon31942935)\
**Post date:** [July 21, 2023, 9:19am UTC](https://forum.universal-robots.com/t/connecting-ur5e-with-laptop-for-external-control/29627/1 "2023-07-21T09:19:06Z")

</div>

Hi all,  
I’m trying to make connection between my laptop and ur5e and to use URcap for external control. I followed instruction from github to install Universal Robot Ros Driver, and also installed URcap for external control.  
My laptop and ur controller are connected over ethernet cable and laptop ip set to static on 192.168.0.100 and on teach pendant I setted the robot’s ip to static 192.168.0.50, subnet masks on both are 255.255.255.0. Under installation on teach pendant \> urcaps\> external control ip is 192.168.0.100 port 50002. Also on TP profinet is dissabled and also ethernet/ip dissabled. Remote control on TP set to enabled.  
When i ping robot ip from laptop I get response. WHen I ssh to robots controller and ping laptop I also get response.  
PROBLEM is when i start driver on ros side and try to run URcap external control program from TP i get error "The connection to the remote PC at 192.168.0.100:50002 could not be established. Reason: No route to host (host unreachable).

I’m using laptop with only ubuntu installed 22.04  
Ros is noetic.

I also read here on forum everything I could find about that error and tryed every solution provided and also googled and tryed all that I can find and nothing seems to help, but maybe I was missing something.

Can somebody help, please.

---

<div class="post-metadata">

**Author:** ![anon31942935](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@anon31942935](https://forum.universal-robots.com/u/anon31942935)\
**Post date:** [July 21, 2023, 9:39am UTC](https://forum.universal-robots.com/t/connecting-ur5e-with-laptop-for-external-control/29627/2 "2023-07-21T09:39:26Z")

</div>

WHen I do this

sudo netstat -peanut|grep 50002

tcp 0 0 0.0.0.0:50002 0.0.0.0:\* LISTEN  
1000 98051 10729/ur\_robot\_driv

then ip a gives this

1: lo: \<LOOPBACK,UP,LOWER\_UP\> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000  
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00  
inet 127.0.0.1/8 scope host lo  
valid\_lft forever preferred\_lft forever  
inet6 ::1/128 scope host  
valid\_lft forever preferred\_lft forever  
2: eno1: \<BROADCAST,MULTICAST,UP,LOWER\_UP\> mtu 1500 qdisc fq\_codel state UP group default qlen 1000  
link/ether 30:24:a9:ef:95:68 brd ff:ff:ff:ff:ff:ff  
altname enp1s0  
inet 192.168.0.100/24 brd 192.168.0.255 scope global noprefixroute eno1  
valid\_lft forever preferred\_lft forever  
inet6 fe80::3143:d22b:29ee:8ff8/64 scope link noprefixroute  
valid\_lft forever preferred\_lft forever  
3: wlo1: \<BROADCAST,MULTICAST,UP,LOWER\_UP\> mtu 1500 qdisc noqueue state UP group default qlen 1000  
link/ether 20:4e:f6:70:a8:f7 brd ff:ff:ff:ff:ff:ff  
altname wlp2s0  
inet 192.168.2.38/24 brd 192.168.2.255 scope global dynamic noprefixroute wlo1  
valid\_lft 83952sec preferred\_lft 83952sec  
inet6 fe80::9cb1:8352:3438:31c5/64 scope link noprefixroute  
valid\_lft forever preferred\_lft forever

and sudo nmap -sn 192.168.1.0/24 give this

Starting Nmap 7.80 ( [https://nmap.org](https://nmap.org) ) at 2023-07-21 10:56 CEST  
Nmap scan report for 192.168.1.254  
Host is up (0.014s latency).  
Nmap done: 256 IP addresses (1 host up) scanned in 30.03 seconds

---

<div class="post-metadata">

**Author:** ![anon31942935](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@anon31942935](https://forum.universal-robots.com/u/anon31942935)\
**Post date:** [July 24, 2023, 10:16am UTC](https://forum.universal-robots.com/t/connecting-ur5e-with-laptop-for-external-control/29627/3 "2023-07-24T10:16:53Z")

</div>

So, I FINALY solved problem with this

sudo systemctl stop firewalld

After running that everything worked fine.

---

<div class="post-metadata">

**Author:** ![shilpa\_pusuluri](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@shilpa\_pusuluri](https://forum.universal-robots.com/u/shilpa_pusuluri)\
**Post date:** [March 15, 2024, 5:30am UTC](https://forum.universal-robots.com/t/connecting-ur5e-with-laptop-for-external-control/29627/4 "2024-03-15T05:30:17Z")

</div>

Can’t accept new action goals. Controller is not running how to solve this
