So I thought that when two devices are connected to a router, and if they wanted to communicate with each other, then all the traffic will go through the router(AP). I tried running a traceroute and this is what i got: enter image description here is the address of a device on my local network. How is my computer directly connected to this device? Why doesn't the router IP( appear as a hop here?

  • if you go to your neighbor house, why would you go to the motorway first and then come back to your street?
    – JFL
    Sep 25, 2019 at 6:57
  • @Zac67 so basically a traceroute only tries to find a path to the entered address, and doesn't actually send data over it, but if I wanted to send data packets to a device on the LAN, it would have to go through the router? Sep 25, 2019 at 8:41
  • It is going through it, but as layer-2 (switching) not layer-3 (routing).
    – Jesse P.
    Sep 25, 2019 at 10:51
  • @mayankbudhwani Traceroute probes the IP (L3) path and is completely oblivous to anything below. It does send dummy data, so real data should take the same path. Before you ask, there is no such a thing as a traceroute for Ethernet since L2 lacks TTL and ICMP.
    – Zac67
    Sep 25, 2019 at 13:12
  • Traffic will go to router when source and destination are in different subnet . If souce and destination belongs to same subnet then traffic will forward to destination on basis of mac -address table at layer2 Nov 24, 2020 at 7:14

1 Answer 1


Routers forward traffic between networks, or from one network to another. If your devices are on the same network, they can be addressed directly. In that case, there is no need for a router.

Not the answer you're looking for? Browse other questions tagged or ask your own question.