Use a wireless home network or ad-hoc method

A computer network is a group of 2 or more computers connected by a common communications link so that data, resources and peripheral devices can be shared between them. Although there are different methods for creating a computer network, wireless networks have become the standard in recent years, both at home and in the office. This is because a wireless network eliminates the need for a direct or physical connection between each computer or device on the network. An "ad-hoc" network also can be used to provide a temporary connection between 2 computers or internet-enabled devices. This wikiHow guide teaches you how to network computers.

Things You Should Know

  • You can connect multiple computers together to share files or internet access.
  • Use Windows’ built-in wireless networking feature to share files, folders, and drives.
  • Use an Ad-hoc network if you want to share internet access from one computer to another.
Method 1
Method 1 of 3:

Setting Up a Wireless Computer Network

  1. 1
    Obtain the necessary equipment to create a computer network. In order to set up a wireless network, you will need internet service, a modem, and a wireless router, or a combination router/modem device which is called a gateway. You may also need 2 or 3 ethernet cables.
  2. 2
    Obtain the router's default username, password, and IP address. You'll need this information to log in to your router's user interface. This information can be found in the User's manual for the router, or the manufacturer's web page.
    Advertisement
  3. 3
    Connect the modem to a live internet connection. Your internet service provider will need to install an internet connection at your home or business for you to access the internet. The type of internet connection that's available depends on your location. The 3 main types of high-speed internet services are cable, DSL, and fiber optic:[1]
    • Cable: Cable uses the existing cable television infrastructure to provide cable internet. Connect the coaxial cable that your cable internet service provider installed to the coaxial input on the back of the cable modem or gateway.
    • DSL: DSL uses existing phone lines to provide high-speed internet. A DSL modem connects to the internet using a standard phone line. Connect a phone line from a phone jack to the DSL line on the back of the modem.
    • Fiber optic: Fiber optic internet is the newest and fastest form of high-speed internet. The infrastructure for fiber optic is not available in all areas. Depending on how the service is installed at your home or business, a fiber optic cable may be installed by your internet service provider which you can connect directly to the modem, or it may be connected to a media converter which then connects to your modem or gateway device using an ethernet cable. Connect the ethernet cable to the internet or WAN port on the back of your router or gateway device.
  4. 4
    Connect the wireless router to the modem. Connect one end of an ethernet cable to the back of the modem. Then connect the other end of the ethernet cable into the internet or WAN port on the back of the wireless router.
    • For more information, check out our guides on setting up Wi-Fi and extending a wireless network.
    • If you are using a combination router and modem gateway device, you do not need to connect it to any other routers.
    • Make sure both your modem and router are plugged in using the AC adapter that came with them.
  5. 5
    Connect a computer to the wireless router. Use an ethernet cable to connect a computer or laptop to a LAN port on the router.
    • Plug in the power source for the modem, then plug in the power source for the wireless router. Wait a few moments for the devices to boot up.
  6. 6
    Enter the router's default IP address in the address bar of a web browser. This opens the login page for the router's user interface. Check the user's manual that came with the router, or manufacturer's web page to find the default IP address. Common IP addresses include 192.168.0.1, and 10.0.0.1
  7. 7
    Log in to the router's user interface. Use the default username and password to log in to the user interface. Consult the user's manual or manufacturer's web page to find the default username and password. Common usernames and password are "admin", "password", "12345", or leaving the field blank.
    • You can also typically find the router’s default admin username and password on Google by searching for the router model + “admin username” or “admin password.”
  8. 8
    Locate the Wireless SSID name and password section. Each router model has a different user interface. You may find the SSID and password field in a menu labeled "Wireless", "Wi-Fi", or "Wireless Network."
  9. 9
    Create a name for the network. The SSID is the name of the network that you and your guests will use to log in to your Wi-Fi network. Enter the name you want to use as the SSID in the SSID field.[2]
  10. 10
    Select a security mode for the network. The options typically will be limited to "none," "WEP", "WPA", "WPA 2." WPA 2 is the option most often recommended because it offers stronger encryption and therefore greater security than WPA.
  11. 11
    Enter the password. Enter a password in the field that says "Password", "Network key", or something similar. [3]
    • This is the password that you and guests will use to log in to the network.
  12. 12
    Save your changes. Locate the button to save the changes you have made in the router's user interface and click the button to save your changes. Your router may need to restart.
  13. 13
    Connect other devices to your network. Use the following steps to connect other devices to your wireless network:
    • Open the network settings menu or click or tap the wireless icon which usually resembles a dot with arching lines over it.
    • Select your wireless SSID.
    • Enter the wireless password.
    • Click or tap Connect.
  14. 14
    Share items on a local network (Windows). You can share files, folders, and even entire drives! You need to turn on network discovery first:[4]
    • Right-click the Wi-Fi icon in the system tray. Select Network & Internet settings.
    • Windows 10:
      • Click Network and Sharing Center on the Status page.
      • Click Change advanced sharing settings.
      • Toggle on Network discovery and File and printer sharing.
    • Windows 11:
      • Click Advanced network settings, then Advanced sharing settings.
      • Toggle on Network discovery and File and printer sharing.
  15. 15
    Access shared items (Windows). To find files and drives that have been shared on a local network on a Windows computer, follow these steps:
    • Press Windows Key + S to open Windows search.
    • Search for “View network computers and devices”.
    • Click “View network computers and devices”.
    • Double-click the computer/device you’re going to access.
    • Navigate to the shared item you’re looking for.
  16. 16
    Share items on a local network (macOS). Follow these steps to share files, folders, and drives on a Mac by turning on file sharing:[5]
    • Go to Apple menu > System Settings in the menu bar.
    • Select the General tab in the sidebar.
    • Click Sharing in the right side menu.
    • Toggle on “File Sharing”.
    • Click the info button to the right to add specific items to share.
    • Note: The Public folder for each user is shared automatically.
  17. 17
    Access shared items (macOS). To find files and drives that have been shared on a local network on a Mac computer, follow these steps:
    • Open a new Finder window.
    • Click Shared Folders in the sidebar list.
    • Locate the shared item that you want to access.
  18. Advertisement
Method 2
Method 2 of 3:

Creating an Ad-hoc Network In Windows 10

  1. 1
  2. 2
    Type cmd. This displays the Command Prompt in the Windows Start menu.
  3. 3
    Right-click Command Prompt and click Run as Administrator. This opens the Command Prompt as an administrator.
    • You must be logged in to Windows with an account that has administrative privileges to run Command Prompt as an administrator.
    • If asked if you want to allow Command Prompt to make changes to your system, click Yes.
  4. 4
    Type netsh wlan show drivers and press Enter. This shows your network driver properties.
  5. 5
    Check the status next to "Hosted network supported". If it says "Yes", continue to the next step. If it says "No", try update your wireless network adapters. Enter the previous command once again in Command Prompt. If it still says "No" next to "Hosted network supported", your network adapter doesn't support ad-hoc networking.
  6. 6
    Type netsh wlan set hostednetwork mode=allow. This is the start of the command to create an ad-hoc wireless network. Don't press "Enter" just yet. You still need to add the network name and password to the command.
  7. 7
    Type ssid= followed by a name for the network. This creates a name for your ad-hoc network.
  8. 8
    TYpe key= followed by the desired password. This creates a password that other users need in order to connect to the ad-hoc network.
    • If doesn't accept your password, try deleting the equals (=) sign.[6]
  9. 9
    Type netsh wlan start hostednetwork and press Enter. This starts the ad-hoc network. As of now, the network may not appear when you search for a nearby network, but you can still enter the network name and password to connect to the network manually.
  10. 10
    Open the Control Panel. Use the following steps to open the Control Panel:
    • Click the Windows Start icon.
    • Type "Control Panel".
    • Click the Control Panel icon.
  11. 11
    Navigate to the Network and Sharing Center. Use the following steps to navigate the network and sharing center:
    • Click Network and internet.
    • Click Network and Sharing Center.
  12. 12
    Click Change adapter settings. It's in the menu bar to the left.
  13. 13
    Right-click your ad-hoc network and click Properties. This opens the properties menu.
  14. 14
    Click the Sharing tab. It's the second tab at the top of the Sharing menu.
  15. 15
    Click the checkbox next to "Allow other network users to connect through this computer’s Internet connection". It's the first option at the top of the Sharing menu.
  16. Advertisement
Method 3
Method 3 of 3:

Creating an Ad-hoc Network on Mac

  1. 1
    Turn off all sharing capabilities. As of the release of macOS 10.10, there is no longer an option to create a password for an ad-hoc network. It's recommended that you disable all sharing capabilities on your Mac and turn on the macOS Firewall before creating an ad-hoc network. Use the following steps to disable sharing:[7]
    • On macOS Monterey and earlier:
      • Click the Apple icon in the menu bar.
      • Click System Preferences.
      • Click the Sharing icon.
      • Uncheck any checked checkboxes in the Sharing services menu on the left.
    • On macOS Ventura and later:[8]
      • Click the Apple icon in the menu bar.
      • Click System Settings.
      • Click General. This is in the sidebar.
      • Click Sharing.
      • Uncheck any checked checkboxes in the Sharing services menu.
  2. 2
    Turn on the macOS Firewall. Use the following steps to enable the macOS firewall:
    • On macOS Monterey and earlier:
      • Click the Apple icon in the menu bar.
      • Click System Preferences.
      • Click Security & Privacy.
      • Click the Firewall tab.
      • Click the lock icon in the lower-left corner.
      • Enter your Mac password.
      • Click Turn On Firewall.
    • On macOS Ventura and later:[9]
      • Click the Apple icon in the menu bar.
      • Click System Settings.
      • Click Network. This option is in the sidebar.
      • Click Firewall.
      • Turn on the Firewall in the Firewall menu.
  3. 3
  4. 4
    Click Create Network. It's near the bottom of the pull-down menu.
  5. 5
    Enter a network name. Use the field next to "Network Name" to create a name for your network.
  6. 6
    Select a channel. Use the drop-down menu next to "Channel" to select a channel. Channels 1, 6, and 11 are good choices because they don't typically overlap with other channels.[10]
  7. 7
    Click Create. This creates a new ad-hoc network. You can connect to your ad-hoc network on other devices by selecting the network name in the network connection settings.
  8. Advertisement

Community Q&A

  • Question
    I need to network two computers in separate buildings 120' apart that are beyond the signal strength of my WiFi. What are my options?
    Community Answer
    Community Answer
    Use a VPN or something like Hamachi. They should be able to connect them as one network.
  • Question
    Which type of cable is used for a LAN connection?
    R2_d2000
    R2_d2000
    Top Answerer
    An Ethernet cable is used for LAN connections. They are also called RJ-45 cables.
  • Question
    I just purchased a refurbished HP ProLiant ML350p (Gen8) server. On the back it has an NIC card with 2 Ethernet ports and then it has multiple Ethernet ports in the middle. Why so many ports?
    R2_d2000
    R2_d2000
    Top Answerer
    The multiple Ethernet ports could be for multiple things. They could allow you to plug multiple cables in so that the server can have a faster connection to the internet. They could also be for redundancy, for example, if one of the Ethernet cables fails, then the other ones will still be able to handle traffic for the server (it is common in servers to have multiple components for redundancy). Also, the multiple Ethernet ports could allow the server to serve as a router.
Advertisement

About This Article

Kyle Smith
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Kyle Smith. Kyle Smith is a wikiHow Technology Writer, learning and sharing information about the latest technology. He has presented his research at multiple engineering conferences and is the writer and editor of hundreds of online electronics repair guides. Kyle received a BS in Industrial Engineering from Cal Poly, San Luis Obispo. This article has been viewed 168,631 times.
How helpful is this?
Co-authors: 13
Updated: February 24, 2023
Views: 168,631
Categories: Computer Networking
Article SummaryX

1. Connect a live internet cable to the internet port on the modem.
2. Use an ethernet cable to connect the modem to the "WAN" port on a wireless router.
3. Use an ethernet cable to connect a computer to the router.
4. Enter the router's IP address in a web browser address bar.
5. Log in using the router's default username and password.
6. Locate the Network name (SSID) and Password settings.
7. Create a name and password for your wireless network.
8. Save your settings.
9. Use the wireless name and password to connect other computers and devices to the network.

Did this summary help you?
Advertisement