# Socket program to send and receive GPS fix time

**URL:** <https://forum.legato.io/t/socket-program-to-send-and-receive-gps-fix-time/5978>\
**Category:** Uncategorized\
**Created:** [September 29, 2021, 11:10am UTC](https://forum.legato.io/t/socket-program-to-send-and-receive-gps-fix-time/5978 "2021-09-29T11:10:18Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [September 30, 2021, 6:04am UTC](https://forum.legato.io/t/socket-program-to-send-and-receive-gps-fix-time/5978/14 "2021-09-30T06:04:17Z")

</div>

you can use this sample as reference:  
[UART\_TCP\_Server.rar](https://forum.legato.io/uploads/short-url/7fDbLuuC5M4SGovMywb1rO8lsb7.rar) (3.7 KB)

1. Disable firewall by  
iptables -I INPUT -j ACCEPT
2. Start the application by  
`app runProc UART_TCP_Server UART_TCP_Server --exe=uart -- 5044 /dev/ttyHSL0 115200`
3. Establish a TCP client connection from PC to 192.168.2.2 on port 5044
4. Send some data from TCP client and they will be forwarded to module’s UART1
5. Type some characters on UART1 of module, they will be sent to TCP client.
6. To disconnect the TCP connection, you can send ”exit”.

---

_[View the full topic](https://forum.legato.io/t/socket-program-to-send-and-receive-gps-fix-time/5978)._
