Re: Detecting host in the local network



The question is about devices that cannot be reached at the own IP
subnet (ipaddress/netmask definition) but are connected to the same
LAN. You can have multiple logical IP networks at the same physical
LAN. To send a frame to host at the other IP network you must send to
the limited broadcast address.

So when the target device is at the same LAN, you need the broadcast,
but you will send a unicast to any device behind the router. But for
this decision you need to detect, if the target is connected the
physical LAN.

Andreas


On Feb 11, 7:56 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
I don't understand the question.  You can ping things on the other side of a
router, if they're willing to respond to the ping and the router allows ARP
packets.  You have a gateway set up for your network adapter.  If the IP
address you specify for any sort of IP traffic is not on your local subnet
(mask you own IP with your subnet mask and mask the target IP with your
subnet mask; if the results are different, the address is not local, so the
router will be contacted to send the packet to the subnet where the target
IP actually is located)., the router gets it for forwarding.

Paul T.

<AndreasSand...@xxxxxxx> wrote in message

news:6e0a1c7e-dd86-4c11-b02f-7fbc8455a5b7@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The ICMP protocol is based on IP. The other device is in a different
logical network. Shouldn't I get a "host unreachable" error when I
dont twiddle with the routing table?

Andreas

On 11 Feb., 18:27, "Paul G. Tobey [eMVP]" <p space tobey no spam AT no
instrument no spam DOT com> wrote:



You can certainly ping a given IP address or host name. The source for
PING
is in Platform Builder at
\WINCE500\PUBLIC\COMMON\OAK\DRIVERS\NETSAMP\PING.
There's also a library that just does ping, not general ARP. Look at
\WINCE500\PUBLIC\COMMON\OAK\INC\pinglib.h. I've never used the latter, but
it looks like it should work.

Paul T.

<AndreasSand...@xxxxxxx> wrote in message

news:d81fab83-1b14-4d00-b861-d5ec0db0ccfe@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hello,

is it possible to detect, if a ethernet device is connected to the
local LAN?

I have a scenario where a Windows CE 5.0 device is connected to a LAN..
There are probably other devices connected to the same physical
network that use a different subnet. I have to decide if the other
device is in the LAN.

Can I access the ARP layer in any way?

The information is required to decided if I should use the limited
broadcast address to send a UDP frame to the other device or a unicast
address that the next gateway will route.

Andreas- Hide quoted text -

- Show quoted text -

.



Relevant Pages

  • Re: Just an interesting note.
    ... The Linksys box is NAT'g for the internal network of 192.168.1.0/24. ... real router but an illusion. ... 192.168.1.0/24 subnet, the other NIC is on the 192.168.2.0/24 subnet connected to a different switch ...
    (alt.internet.wireless)
  • Re: please advise - problem with routing
    ... Actually, these are HOST addresses, not NETWORK addresses. ... I will assume that this means from the 192.168.1.x/24 subnet you can ... your Internet Router, and not related to routing between the two internal ... Gateway using Interface 192.168.1.12. ...
    (microsoft.public.windows.server.networking)
  • Re: Foundational Question
    ... Cisco has split its CCNA certification into two exams to make it more ... They have a network fundamentals book that would be ... > the primary difference between the hub and router be the shared bandwidth, ... > So the DHCP server will have every scope of each subnet that makes up the ...
    (microsoft.public.win2000.networking)
  • Re: Network Hardware
    ... LAN With Two Routers" and now wonder whether or not to send this message as ... I was also hoping to use the DLink Router ... have to go through the router to get to the internet on the other subnet. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Multihomed Win2k Server Routing Issue
    ... Cisco router must have a router point all 0.0.0.0 including 192.168.3.x to outside port. ... have a network small network connecting to our main network through 3COM wireless router and the main network has another Cisco router connecting to the Internet. ... The computers in the Lab can ping main network computers and the Internet. ... NIC 2 (192.168.3 subnet) has address 192.168.3.250 and netmask of ...
    (microsoft.public.win2000.ras_routing)