So, I am pretty familiar with things when a router is used. To my knowledge, packets travel from Computer A to the router, then the router directs it to Computer B. Problem solved. I get confused when the router is taken out. How can computers within close physical proximity communicate with one another without a router?

  • A little switch don't solve your problem ? I need more information, do you need internet access or just communicate with another one ? Do you want create a private network ? without intenet ? Mar 20, 2020 at 11:50
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can post and accept your own answer.
    – Ron Maupin
    Dec 17, 2020 at 16:18

2 Answers 2


Routers route between networks. When two computers are in the same network, they communicate directly together (usually through a switch) without any router being involved.

When two computers are in two different networks, then they need a (or several) router(s).

The subnet mask in the IP configuration is what is used to determine if the target computer is in the same network or not as the sending computer (there's plenty answer on this subject in this site already).

  • Ahhhh yes. I forgot about subnet mask. Would you mind routing me to some good questions and answers on this site? Much appreciated!
    – lpydawa
    Mar 20, 2020 at 12:40

In the simplest scenario, you can connect two hosts directly with each other by Ethernet.

  • If the link doesn't come up you'll need a crossover cable. Most NICs support Auto MDI-X nowadays and crossovers aren't required any more.
  • The hosts need to be manually configured with static IP addresses (from the same subnet). Depending on the default or configuration, some hosts automatically fall back to Zeroconf aka APIPA addresses (169.254.x.y) which should also work.
  • Name resolution likely won't work. Either use the hosts' IP addresses or create a workaround (e.g. using the local hosts files).

Also, you can use any simple Ethernet switch to connect two or more hosts together into a shared network. This removes the crossover problem (if relevant), the rest is the same.

A router is only required when you want to connect that switch to another network.

  • Why is Auto MDI-X or a switch required? Don't both computers use the same protocol (Ethernet)?
    – lpydawa
    Mar 20, 2020 at 13:08
  • If you connect two MDI ports (PC-to-PC) or two MDI-X ports (switch-to-switch) with each other they won't link without Auto MDI-X or a crossover cable/adapter. Both port types are wired differently which is required when using a standard, "straight" cable. Check out en.wikipedia.org/wiki/Medium-dependent_interface
    – Zac67
    Mar 20, 2020 at 13:23
  • so essentially it's same protocol, different physical wire configuration?
    – lpydawa
    Mar 20, 2020 at 13:40
  • Yes, that's correct.
    – Zac67
    Mar 20, 2020 at 13:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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