linuxsocketsubuntu-9.04

Linux blocking udp socket won't receive


I am openning a udp blocking socket on an ubuntu machine, it goes successful (no errors returned).

When sending data to that machine and port from another machine the receive doesnt breaches and in a wireshark sniffer I see and Icmp error "port unreachable".

I though it might be an iptables problem and opened the port for accept.

Any other suggestions how to debug this?

Thanks.

Timmy


Solution

  • You should show a minimal test case.

    Do you see your process in

    sudo netstat -4lp
    

    ? What local address is its socket bound to (as reported by netstat)?