(E-Mail Removed)a (BobGardner) wrote in
news:(E-Mail Removed):
> I have a winsock app to send udp datagrams to an embedded
> controller. I put the eth add of the controller in the arp table,
> and I put the 'dummy' ip add in a line in the hosts file. So I
> create the socket and fill in the ip addr, it should look up the
> eth addr in the arp table, right?
If it is in the same subnet as your device, it will. If it is in a
different subnet (or thinks it is), then it will send the packet to the
gateway device.
> [...] I should be able to send a udp datagram to that ip addr, and
> have it look up the eth addr in the host file, right?
The hosts file will convert an IP _name_ to an IP _address_. Given the
IP address, the _Ethernet_ address will be looked-up in the ARP table
if it hasn't expired from there and found by broadcast if it has.
It sounds as if your network admin has moved all devices into a
different subnet except your machine so your machine is always
searching for the gateway device to route packets to the destination.
Type "netstat -rn" to see the routing table and see how your packets
will be routed.
HTH,
John