# Bidirectional with Socket PDU

**URL:** <https://www.ruby-forum.com/t/bidirectional-with-socket-pdu/242996>\
**Category:** GNU Radio\
**Created:** [August 13, 2015, 9:30pm UTC](https://www.ruby-forum.com/t/bidirectional-with-socket-pdu/242996 "2015-08-13T21:30:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [August 13, 2015, 9:30pm UTC](https://www.ruby-forum.com/t/bidirectional-with-socket-pdu/242996/1 "2015-08-13T21:30:43Z")

</div>

This will probably show my networking ignorance, but is there a way to  
use the socket PDU for bi-directional purposes? I see that it has a PDU  
in and out, but I cant’ seem to get it to work.

What I am doing is connection netcat to it with the PDU in UDP Server  
mode with “nc -u localhost 52001” and I can transmit to it. But I know  
that I cannot open a listening port with “nc -ul localhost 52001” since  
the port is bound.

Is there a way to write and listen on the same port, or am I totally  
screwing how networking works (the only reason I would think there might  
be a way is because the GRC script allows me to connect the PDU in and  
out at the same time without throwing an error)?

---

<div class="post-metadata">

**Author:** ![Jason\_Matusiak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/edb3f5/32.png) [@Jason\_Matusiak](https://www.ruby-forum.com/u/Jason_Matusiak)\
**Post date:** [August 13, 2015, 9:37pm UTC](https://www.ruby-forum.com/t/bidirectional-with-socket-pdu/242996/2 "2015-08-13T21:37:09Z")

</div>

You should be fine connecting both input and output ports at the same  
time for exactly this purpose!  
-Tim
