# Can't receive socket data when renaming socket

**URL:** <https://forum.universal-robots.com/t/cant-receive-socket-data-when-renaming-socket/25435>\
**Category:** Java\
**Created:** [December 2, 2022, 4:36pm UTC](https://forum.universal-robots.com/t/cant-receive-socket-data-when-renaming-socket/25435 "2022-12-02T16:36:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![florian.gaillard](https://avatars.discourse-cdn.com/v4/letter/f/b5a626/32.png) [@florian.gaillard](https://forum.universal-robots.com/u/florian.gaillard)\
**Post date:** [December 2, 2022, 4:36pm UTC](https://forum.universal-robots.com/t/cant-receive-socket-data-when-renaming-socket/25435/1 "2022-12-02T16:36:14Z")

</div>

Hello,

I’m working on an URCAP which communicates with 2 different sockets.  
When opening the sockets, I added in parameter the socket names that I wanted

```auto
socket_open("192.168.127.254",9001,socket_name="socket_ucr")

```

After sending some data to the socket, I try to receive a response using

```auto
received_data = socket_read_string("socket_ucr",timeout=5)

```

I don’t get any answer. However, if I change the socket\_name by its default value (“socket\_0”), it works.  
Did I miss anything about the naming rules of sockets?

Thanks
