# Network Communication: Closing Open Ports

**URL:** https://forum.universal-robots.com/t/network-communication-closing-open-ports/30866
**Category:** Robot Communication
**Created:** [October 11, 2023, 6:43am UTC](https://forum.universal-robots.com/t/network-communication-closing-open-ports/30866 "2023-10-11T06:43:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dirk.feldmeier](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@dirk.feldmeier](https://forum.universal-robots.com/u/dirk.feldmeier)
#### Post date: [October 11, 2023, 6:43am UTC](https://forum.universal-robots.com/t/network-communication-closing-open-ports/30866/1 "2023-10-11T06:43:02Z")

</div>

Hello Community,

we have integrated our UR systems into our company network.  
However, we found out that this is not a good solution.

By default, the UR systems have many ports open,  
which in our opinion are not always necessary.

We have discovered the following ports:  
PORT STATE SERVICE  
22/tcp open ssh  
502/tcp open mbap  
6000/tcp open X11  
29999/tcp open bingbang  
30001/tcp open pago-services1  
30002/tcp open pago-services2  
30003/tcp open amicon-fpsu-ra  
30004/tcp open amicon-fpsu-s

How can we close the ports from 6000 to 30004?

Regards  
Dirk

---

<div class="post-metadata">

### Author: ![efn](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@efn](https://forum.universal-robots.com/u/efn)
#### Post date: [October 11, 2023, 7:14am UTC](https://forum.universal-robots.com/t/network-communication-closing-open-ports/30866/2 "2023-10-11T07:14:33Z")

</div>

If you’re using an (updated) e-series robot, you might be able to enter settings (Security → Services) and disable the services associated with the ports (RTDE etc).  
I don’t have a robot with me, so I don’t know if they’re all available for disabling in the settings.

Alternatively, you should be able to establish an SSH connection to the robot or using the internal Linux terminal by connecting a USB keyboard to the robot (I don’t remember the hotkey).  
You will have to kill the service associated to the port (and stop it from starting again when booting), since it’s the application/service that has opened the port. You can also block the port in the firewall, but it will still show as “open”, I think.

---

<div class="post-metadata">

### Author: ![dirk.feldmeier](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@dirk.feldmeier](https://forum.universal-robots.com/u/dirk.feldmeier)
#### Post date: [October 11, 2023, 2:12pm UTC](https://forum.universal-robots.com/t/network-communication-closing-open-ports/30866/3 "2023-10-11T14:12:25Z")

</div>

enf\>If you’re using an (updated) e-series robot, …  
Think our systems are to old…We operate 4 systems UR3/UR5:

2x Robot-Sw: 3.4.2.65  
1x Robot-Sw: 3.7.0.40195  
1x Robot-Sw: 3.5.1.10661

enf\>SSH connection to the robot …  
Yes, we can do it.

enf\>…kill the service associated to the port…  
Not clear for me witch service is responsible.

---

<div class="post-metadata">

### Author: ![efn](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@efn](https://forum.universal-robots.com/u/efn)
#### Post date: [October 12, 2023, 12:00pm UTC](https://forum.universal-robots.com/t/network-communication-closing-open-ports/30866/4 "2023-10-12T12:00:28Z")

</div>

There’s a command to list all applications using network ressources (or something). I just don’t remember it. If you have a Linux expert, you should consult him. 🙂

---

<div class="post-metadata">

### Author: ![dirk.feldmeier](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@dirk.feldmeier](https://forum.universal-robots.com/u/dirk.feldmeier)
#### Post date: [October 12, 2023, 12:51pm UTC](https://forum.universal-robots.com/t/network-communication-closing-open-ports/30866/5 "2023-10-12T12:51:08Z")

</div>

Found it 😉

root@ur-2015351735:~# **netstat -tulpn**  
Active Internet connections (only servers)  
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name  
tcp 0 0 0.0.0.0:6000 0.0.0.0:\* LISTEN 2447/X  
tcp 0 0 0.0.0.0:30001 0.0.0.0:\* LISTEN 2686/URControl  
tcp 0 0 0.0.0.0:30002 0.0.0.0:\* LISTEN 2686/URControl  
tcp 0 0 0.0.0.0:30003 0.0.0.0:\* LISTEN 2686/URControl  
tcp 0 0 0.0.0.0:30004 0.0.0.0:\* LISTEN 2686/URControl  
tcp 0 0 0.0.0.0:502 0.0.0.0:\* LISTEN 2686/URControl  
tcp 0 0 0.0.0.0:22 0.0.0.0:\* LISTEN 2401/sshd  
tcp6 0 0 127.0.0.1:6666 :::\* LISTEN 2468/java  
tcp6 0 0 :::29999 :::\* LISTEN 2468/java  
tcp6 0 0 :::6000 :::\* LISTEN 2447/X  
tcp6 0 0 :::22 :::\* LISTEN 2401/sshd
