# Socat and ComfoAir

**URL:** <https://community.openhab.org/t/socat-and-comfoair/13217>\
**Category:** Beginners\
**Created:** [August 12, 2016, 4:42pm UTC](https://community.openhab.org/t/socat-and-comfoair/13217 "2016-08-12T16:42:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vschwaberow](https://community.openhab.org/user_avatar/community.openhab.org/vschwaberow/32/71561_2.png) [@vschwaberow](https://community.openhab.org/u/vschwaberow)\
**Post date:** [August 12, 2016, 4:42pm UTC](https://community.openhab.org/t/socat-and-comfoair/13217/1 "2016-08-12T16:42:41Z")

</div>

Hi guys.

I am having a ComfoAir550 coupled to a USB serial device and I want to connect this device remotely via ser2net.

My Ser2Net config:

```
root@raspberrypi:~# cat /etc/ser2net.conf 
6670:raw:0:/dev/ttyUSB0 9600 8DATABITS NONE 1STOPBIT

```

Now I want to refer it via Socat on my OpenHAB instance.

`socat pty,link=/dev/virtualcom0,raw tcp4:192.168.178.46:6670`

It just jumps back to shell.

With debug I am getting following output…

```
2016/08/12 18:41:31 socat[3866] N PTY is /dev/pts/1
2016/08/12 18:41:31 socat[3866] N opening connection to AF=2 192.168.178.46:6670
2016/08/12 18:41:31 socat[3866] N successfully connected from local address AF=2 192.168.178.43:44914
2016/08/12 18:41:31 socat[3866] N starting data transfer loop with FDs [5,5] and [7,7]
2016/08/12 18:41:31 socat[3866] N socket 2 (fd 7) is at EOF
2016/08/12 18:41:31 socat[3866] N exiting with status 0

```

Any ideas it fails to work?

---

<div class="post-metadata">

**Author:** ![vschwaberow](https://community.openhab.org/user_avatar/community.openhab.org/vschwaberow/32/71561_2.png) [@vschwaberow](https://community.openhab.org/u/vschwaberow)\
**Post date:** [August 12, 2016, 4:54pm UTC](https://community.openhab.org/t/socat-and-comfoair/13217/2 "2016-08-12T16:54:13Z")

</div>

That was a typo 🙂

Solved
