# EOF on tcp socket with pymavlink

**URL:** https://discuss.bluerobotics.com/t/eof-on-tcp-socket-with-pymavlink/17693
**Category:** Blue Robotics Software
**Tags:** pymavlink
**Created:** [August 15, 2024, 2:40am UTC](https://discuss.bluerobotics.com/t/eof-on-tcp-socket-with-pymavlink/17693 "2024-08-15T02:40:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sam1](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@sam1](https://discuss.bluerobotics.com/u/sam1)
#### Post date: [August 15, 2024, 2:40am UTC](https://discuss.bluerobotics.com/t/eof-on-tcp-socket-with-pymavlink/17693/1 "2024-08-15T02:40:18Z")

</div>

Hi !

I am having issues connecting a second onboard computer to a Mavlink Endpoint using Pymavlink.

I created a TCP server endpoint in BlueOS on 0.0.0.0:29442.

I then connect with pymavlink on the second onboard computer with the following command:

```auto
connection = mavutil.mavlink_connection(
                'tcp:192.168.2.2:29442',
                source_system=1,
                source_component=mavutil.mavlink.MAV_COMP_ID_ONBOARD_COMPUTER,
                force_connected=False,
                autoreconnect=True)

```

This used to work but I am recently having a repeated `EOF on tcp socket` message and the connection attempts to reconnect endlessly.

I can’t seem to find the issue online… Any help or tips to diagnose the problem would be much appreciated !  
Thanks !
