User Datagram Protocol (UDP) is defined to make available a datagram mode of packet-switched computer communication in the environment of an interconnected set of computer networks. This protocol assumes that the Internet Protocol (IP) is used as the underlying protocol.

learn more… | top users | synonyms

1
vote
2answers
3k views

Redirect stdin and stdout to ports

I'd like to take a program P that reads from stdin & writes to stdout, but connect it to nc or whatever such that it reads from a certain port and outputs to another port. # The reading is easy, ...
19
votes
1answer
10k views

Is it better to set -j REJECT or -j DROP in iptables?

There's an example of iptables rules on archlinux wiki: # Generated by iptables-save v1.4.18 on Sun Mar 17 14:21:12 2013 *filter :INPUT DROP [0:0] :FORWARD DROP [0:0] :OUTPUT ACCEPT [0:0] :TCP - ...
12
votes
3answers
21k views

How do I reserve ports for my application?

How do I reserve a list of ports for my custom applications? To be specific, the product I'm creating has a lot of processes and a lot of intercommunication between them. The problem I'm having is ...
3
votes
2answers
732 views

Bash: Permission denied when trying to echo data directly to Network

I am trying to send characters directly to the network stack as explained in this thread. Even when the process work OK under CygWin (Windows), the same lines do fail on Ubuntu v14.04: ...
3
votes
1answer
1k views

Why isn't my application receiving broadcast packets?

I have written a Qt application that listens for UDP broadcast packets on the network interface p2p1. I have installed the application in Fedora 17 i386 in a VirtualBox VM. For some reason, the ...
2
votes
1answer
99 views

socat/netcat UDP to TCP

I am trying to bridge a connection between UDP and TCP. The UDP - must listen on port. The TCP - must connect to a server. The purpose of the connection is to control VLC player. I tried netcat and ...