# TCP Server in gr-ais

**URL:** <https://www.ruby-forum.com/t/tcp-server-in-gr-ais/229911>\
**Category:** GNU Radio\
**Created:** [February 8, 2013, 5:09pm UTC](https://www.ruby-forum.com/t/tcp-server-in-gr-ais/229911 "2013-02-08T17:09:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kprinz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@kprinz](https://www.ruby-forum.com/u/kprinz)\
**Post date:** [February 8, 2013, 5:09pm UTC](https://www.ruby-forum.com/t/tcp-server-in-gr-ais/229911/1 "2013-02-08T17:09:59Z")

</div>

I am having zero luck getting the tcp server to function. I can run  
gr-ais with no problems and get zero’s to output(im in my offic with the  
small SDR antenna) but can not for the life of me get the TCP server to  
work. When i try telnet’ing or using an AIS client software i just get  
connection refused. Can anyone please help?? Thanks

---

<div class="post-metadata">

**Author:** ![kprinz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@kprinz](https://www.ruby-forum.com/u/kprinz)\
**Post date:** [February 8, 2013, 5:51pm UTC](https://www.ruby-forum.com/t/tcp-server-in-gr-ais/229911/2 "2013-02-08T17:51:18Z")

</div>

I now wrote a line in the TCP server:

if options.tcp is True  
Print “Trying to work” #new line  
s = socket.socket(socket.AF\_\_…

It prints nothing…  
Why is not even calling this function? What is going on here?
