J
John Doe
Guest
Hi,
I want to listen to UDP packets on the secondary interface (my own program, but this is reproducible with netcat as well).
I have an ubuntu 16.04.02 LTS system, with 2 different network interfaces:
Neither netcat -4 -u -l 0.0.0.0 12345, nor netcat -4 -u -l 192.168.x.x 12345 doesn't seems to receive any packet although I can see UDP packets on the wlan0 interface on port 12345.
Any hints are highly appreciated.
Thanks!
I want to listen to UDP packets on the secondary interface (my own program, but this is reproducible with netcat as well).
I have an ubuntu 16.04.02 LTS system, with 2 different network interfaces:
- ethernet - 10.x.x.x
- wifi - 192.168.x.x
Code:
user@ubuntu-ws:/tmp$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.x.x.x 0.0.0.0 UG 0 0 0 eth0
default OpenWrt.lan 0.0.0.0 UG 600 0 0 wlan0
10.x.0.0 * 255.255.0.0 U 100 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth0
192.168.x.0 * 255.255.255.0 U 600 0 0 wlan0
Neither netcat -4 -u -l 0.0.0.0 12345, nor netcat -4 -u -l 192.168.x.x 12345 doesn't seems to receive any packet although I can see UDP packets on the wlan0 interface on port 12345.
Code:
user@ubuntu-ws:/$ sudo netstat -upln | egrep -i '12345|proto'
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 0.0.0.0:12345 0.0.0.0:* 15697/netcat
Any hints are highly appreciated.
Thanks!