What Is a LAN? Local Area Network Meaning, Types and How to Connect Two Computers

How to Network Two Computers
On this page
  1. LAN at a glance
  2. How a LAN works
  3. Types of LAN
  4. LAN vs WAN vs MAN vs WLAN vs PAN
  5. LAN cables, ports and adapters
  6. How to network two computers (Windows 11 and 10)
  7. Common LAN problems and fixes
  8. FAQ

A LAN (local area network) is a network that connects computers and devices in one limited area, such as a home, office, school or building, so they can share an internet connection, files, printers and other resources. A typical home LAN is your router plus everything connected to it by Ethernet cable or Wi-Fi. The "LAN" ports on the back of your router are where wired devices plug in; the "WAN" port connects the LAN to the internet.

LAN at a glance

QuestionAnswer
Full formLocal Area Network
Typical sizeOne home, office, floor or campus
Main technologiesEthernet (IEEE 802.3) and Wi-Fi (IEEE 802.11)
Typical speed1 Gbps wired is standard; 2.5/10 Gbps increasingly common; Wi-Fi 6/7 up to several Gbps
Key devicesRouter, switch, access points, cables, network adapters
Who owns itThe home or organization that uses it

How a LAN works

  • Devices (PCs, phones, TVs, printers) each have a network adapter with a unique MAC address.
  • A switch (built into most home routers) forwards data between wired devices; access points do the same for Wi-Fi.
  • The router gives each device a private IP address (via DHCP, for example 192.168.1.x) and connects the LAN to the internet through the WAN port; see what is a WAN port.
  • Devices find each other with protocols such as ARP, mDNS and SMB for file sharing.

Types of LAN

TypeHow it connectsProsCons
Wired LAN (Ethernet)Cat5e/Cat6 cables to a switch or routerFastest, most stable, low latencyNeeds cables
Wireless LAN (WLAN / Wi-Fi)Radio via access pointsNo cables, works with phonesSlower, interference, range limits
Virtual LAN (VLAN)Logical groups on managed switchesSeparates guest, IoT and work trafficNeeds configuration
Peer-to-peer LANDevices share directly (no server)Simple home setupHarder to manage at scale
Client-server LANCentral servers for files, logins, appsCentral control, backupsMore cost and admin

LAN vs WAN vs MAN vs WLAN vs PAN

NetworkAreaExample
PAN (personal area network)A few metresPhone + Bluetooth earbuds and watch
LANBuilding or campusHome or office network
WLANSame as LAN, wirelessYour Wi-Fi network
MAN (metropolitan area network)A cityCity fiber network linking offices
WAN (wide area network)Countries, the worldThe internet, company networks linking branches (MPLS, SD-WAN)

LANs are faster, cheaper and privately owned; WANs cover long distances and usually rely on ISPs and carriers. An intranet is a private website/service system that often runs on a company's LAN.

LAN cables, ports and adapters

  • Cable: Ethernet cable with RJ45 connectors. Cat5e handles 1 Gbps (and 2.5 Gbps on short runs); Cat6/Cat6a for 10 Gbps. See Cat5 vs Cat6.
  • Port: an RJ45 socket, slightly wider than a phone jack, often with green/amber lights.
  • Adapter/driver: the network interface card (NIC) in your PC (Intel, Realtek, Killer). If Ethernet stops working, update its driver from the PC maker or chip maker.
  • Max length: 100 m per cable run for standard Ethernet.

How to network two computers (Windows 11 and 10)

Option A: both on the same router (recommended)

  1. Connect both PCs to the same router by Wi-Fi or Ethernet.
  2. On each PC: Settings → Network & internet → your connection → set Network profile type to Private.
  3. Control Panel → Network and Sharing Center → Change advanced sharing settings (Windows 11: Settings → Network & internet → Advanced network settings → Advanced sharing settings) → turn on Network discovery and File and printer sharing for Private networks.
  4. Right-click the folder to share → Properties → Sharing → Share (or Advanced Sharing), choose users and permissions.
  5. On the other PC, open File Explorer → Network, or type \\PC-NAME or \\192.168.1.x in the address bar, and sign in with an account on the sharing PC.

HomeGroup was removed in Windows 10 version 1803, so use the steps above or OneDrive/Nearby sharing instead.

Option B: direct cable between two PCs

  1. Connect the PCs with a normal Ethernet cable (modern adapters detect crossover automatically).
  2. Windows gives each an automatic 169.254.x.x address, or set static IPs: for example 192.168.10.1 and 192.168.10.2, subnet 255.255.255.0 (Control Panel → Network Connections → Ethernet → Properties → IPv4).
  3. Turn on Network discovery and sharing as in Option A.

Common LAN problems and fixes

ProblemFix
Other PC not visible under NetworkSet network to Private; turn on Network discovery; type \\IP-address directly
"Network cable unplugged"Try another cable/port; check adapter is enabled; update NIC driver
Connected at 100 Mbps instead of 1 GbpsDamaged or old cable (needs all 8 wires); replace with Cat5e/Cat6
IP address 169.254.x.xDevice isn't getting DHCP: restart router, run ipconfig /renew
IP address conflictRestart devices; use DHCP reservations instead of manual IPs
Slow file transfers over Wi-FiUse Ethernet for big transfers or a Wi-Fi 6/7 router

FAQ

Is Wi-Fi a LAN?

Yes. Wi-Fi is a wireless LAN (WLAN); it's part of the same local network as wired devices on your router.

What does LAN mean in gaming?

A "LAN party" or LAN mode means players connect over the same local network instead of the internet, giving very low latency.

Is the internet a LAN?

No. The internet is the largest WAN, a network of networks; your home LAN connects to it through your router.

What is the LAN port on a router?

The (usually yellow or numbered) Ethernet ports for your local devices; the separate WAN/Internet port goes to your modem or fiber box.

Related guides