Firewall – UDP packets to IP addresses other than specific ones not arriving and not shown in Wireshark

firewalliproutingudp

I'm writing a service using UDP, but I can't manage to reply to the client.

When sending to the client via the DHCP-assigned IP (192.168.1.143) Wireshark shows no sent packets. The server receives and Wireshark shows any packet sent by the client (broadcasted).

If I send to a random, unassigned IP Wireshark doesn't show it. I thought the NIC would happily send it, since there is a router in the way – shouldn't Wireshark show it, even though it cannot possibly be received by a remote endpoint?

If I send to either the router IP or another (specific, there is only one other) computer, the packet is shown in Wireshark.

I am running Windows 7, the firewall is turned off using the control panel.

Does the fact that wireshark doesn't show these packets mean that they aren't sent? What reason could there be for showing packets to one IP, but not another, on the same subnet?

Best Answer

The NIC cannot happily send a packet to an unassigned IP address in the same subnet, since it would have no idea what hardware address to send it to. Since the address is in the same subnet, the router is not in the way. Routers route between subnets.

Update 1: I see you're thinking that the machine is "wired directly to the router", but this is confusing terminology. Your "router" has a built-in switch in addition to a router. This machine is in fact connected to the router's switch, as is the actual part of the router that routes.

Update 2: It seems wired devices cannot communicate with wireless devices on your LAN at all, since wired devices are not getting ARP replies from wireless devices. The next step in troubleshooting is to make sure wired and wireless machines are connected to the same router and that you don't have some other device in-between them.

Related Topic