Download Article Download Article

This wikiHow teaches how to create a LAN (Local Area Network), which allows connected computers and devices to talk to each other and access the internet.

How to Set Up Lan

To set up a local area network or LAN, plug in a router and then connect your computer to the network with an LAN port or cord. Once the computer is attached to the router, approve the internet connection in your computer’s network settings.

Part 1
Part 1 of 3:

Determining Your Network Needs

Download Article
  1. When setting up a LAN, you'll need to know how many computers will be connecting to the network via Ethernet. This will determine the number of ports you'll need.
    • If you have four or less computers that you need to hardwire, you'll just need a router. If you have more than four, you'll likely need to get a switch to extend the number of ports available on your router.
  2. Decide if you want to create a wireless network. If you want to allow devices to connect wirelessly, you'll need a router that can broadcast a wireless network. Most routers you'll find at the store or online have wireless capabilities.
    • Network switches do not allow wireless devices to connect, and can only be used for hardwired LANs or to extend the number of ports available to the router.
    Advertisement
  3. If you want all of the connected devices to have access to the internet, you'll need a router to handle the connections. If you don't need the devices to have a network connection, you can just use a network switch.[1]
  4. This isn't much of an issue in most homes, but network cables cannot run longer than 100m (328 ft). If you have to run cable farther than this, you'll need switches in between.
  5. If you're filling all of the ports on your hardware, consider future-proofing to allow for more devices in the future.
  6. Advertisement
Part 2
Part 2 of 3:

Setting Up a Basic LAN

Download Article
  1. To create a LAN, you'll need a router or switch, which will act as the hub of your network. These devices route information to the correct computers.[2]
    • A router will automatically handle assigning IP addresses to each device on the network, and is necessary if you intend to share your internet connection with all the connected devices. It is highly recommended that you build your network with a router, even if you're not sharing an internet connection.
    • A network switch is like a simpler version of a router. It will allow connected devices to talk to each other, but will not automatically assign IP addresses and will not share an internet connection. Switches are best used to expand the number of LAN ports available on the network, as they can be connected to the router.
  2. Set up your router. You don't need to do much to set up a router for a basic LAN. Just plug it into a power source, preferably close to your modem if you plan on sharing the internet connection through it.
  3. Connect your modem to your router (if necessary). If you're sharing the internet connection from your modem, connect the modem to the WAN/INTERNET port on the router. This is usually a different color from the other ports.
  4. If you're using a switch to expand the number of ports available on the router, plug an Ethernet cable into any LAN port on the router and any LAN port on the switch. This will expand the network to the rest of the LAN ports on the switch.
  5. Use Ethernet cables to connect each computer to an open LAN port on your router or switch.[3] It doesn't matter what order the ports are connected in.
    • Ethernet cables cannot reliably transfer data at lengths larger than 100m (328 ft).
  6. If you're only using a switch as your network hub, setting up one computer as a DHCP (Dynamic Host Configuration Protocol) server will allow all of the connected computers to easily obtain IP addresses.[4]
    • You can quickly create a DHCP server on one of your computers by installing a third-party utility.
    • The rest of the computers on the network will obtain IP addresses automatically once the server is running, as long as they are set to do so.
  7. After each computer obtains an IP address, they'll be able to talk to each other on the network. If you're using a router to share your internet connection, each computer will be able to access the internet.
  8. Once your network is up, you won't see anything on other computers unless that computer has shared files. You can designate files, folders, drives, printers, and other devices as shared so that anyone on the network, or just specific users, can access them.[5]
  9. Advertisement
Part 3
Part 3 of 3:

Creating a Wireless Network

Download Article
  1. When you're setting up a wireless router, you'll need to keep a few things in mind:[6]
    • For easy troubleshooting, the router should usually be placed close to your modem.
    • It should be located centrally to allow for maximum wireless coverage.
    • You'll need to connect a computer to the router via Ethernet during the setup process.
  2. You'll be using your computer's web browser to configure the router's wireless network.
  3. You can use any web browser.
  4. Type in the router's IP address. You can typically find this printed on the bottom of the router, or in your router's documentation. If you can't find it, there are a couple things you can try:
    • Windows - Right-click the Network button in the System Tray → click Open Network and Sharing Center → click the Ethernet link → click Details → find the Default Gateway entry for your router's IP address.
    • Mac - Click the Apple menu and select System Preferences → click Network → click your Ethernet connection → find the Router entry for your router's IP address.
  5. You'll be prompted for the login information for your router. The default login information varies depending on your router model, but the username is often "admin" and the password is often "admin," "password," or blank.
  6. The exact location and wording of this section varies from router to router.
  7. This may also be called "Network name." This is the name that appears in the list of available wireless networks.
  8. This is the most secure option currently available on most routers. Avoid WPA and WEP except when explicitly required by older, incompatible devices.
  9. Create a strong password. This password will be required in order to connect to the network. The field may be labeled "Pre-Shared Key."
  10. Depending on the router, you may have to check a box or click a button at the top of the Wireless menu to enable the wireless network.
  11. This will save the changes to your router.
  12. It may take a minute for the router and network to come back online.
  13. Once the network is back up, it will appear on the available network list on any wireless devices in range. When connecting to the network, users will be prompted to enter the password you created.[7]
    • Computers connected to the router via Ethernet will not require a password.
  14. Advertisement

Expert Q&A

Search
Add New Question
  • Question
    How do I create a local network between 2 computers?
    Yaffet Meshesha
    Yaffet Meshesha
    Computer Specialist
    Yaffet Meshesha is a Computer Specialist and the Founder of Techy, a full-service computer pickup, repair, and delivery service. With over eight years of experience, Yaffet specializes in computer repairs and technical support. Techy has been featured on TechCrunch and Time.
    Yaffet Meshesha
    Computer Specialist
    Expert Answer
    Plug both of the computers into the modem or switch with ethernet cables to access and share files.
  • Question
    How I connect my TV to LAN?
    Community Answer
    Community Answer
    If you have a smart TV, one that has wireless capabilities and a built-in interface to services like Netflix and YouTube, you can install software such as Plex Media on your networked computers to interface with the TV and share media. If your TV doesn't have this capability, you can pick up a Roku device to connect to your TV to give you these capabilities.
  • Question
    I am not sure why every computer needs its own WiFi card if I am connecting them with a cable. Can I run some of the computers with the cable and some without it?
    Community Answer
    Community Answer
    Yes. You do not need a WiFi card for computers connected with a cable. This article is just aimed more at people wishing to create a wireless LAN, which is the most common preference these days.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Thanks for submitting a tip for review!

About This Article

Yaffet Meshesha
Co-authored by:
Computer Specialist
This article was co-authored by Yaffet Meshesha. Yaffet Meshesha is a Computer Specialist and the Founder of Techy, a full-service computer pickup, repair, and delivery service. With over eight years of experience, Yaffet specializes in computer repairs and technical support. Techy has been featured on TechCrunch and Time. This article has been viewed 1,172,074 times.
How helpful is this?
Co-authors: 49
Updated: April 5, 2024
Views: 1,172,074
Categories: Computer Networking
Article SummaryX

1. Set up your router.
2. Connect a computer to an Ethernet port.
3. Configure the router from that computer.
4. Set up a DHCP server. 5. Set up file and printer sharing.
6. Set up the wireless network (optional).
7. Connect all other computers to the network.

Did this summary help you?

Thanks to all authors for creating a page that has been read 1,172,074 times.

Reader Success Stories

  • Saf Sied

    Saf Sied

    Aug 21, 2021

    "Excellent article. It taught me on how to set up a LAN. Simple language with pictures for illustration made me..." more
    Rated this article:
Share your story

Is this article up to date?

Advertisement