To connect to the internet, either plug an Ethernet cable from your computer into a LAN port on your router, or choose your Wi-Fi network from the list on your device and enter its password. In both cases the router must itself be connected to your internet provider through a modem.
This page covers the whole chain: what has to be connected to what, how to join Wi-Fi on Windows, how to use a cable on Windows and Mac, and how to confirm it worked. If you already know the connection is set up and the problem is that it fails, jump to the last two sections.
What has to be connected first
A home connection has three parts, and your computer only talks to the last one.
- The line from your internet provider (cable, fibre, DSL or similar) goes into a modem. Some providers give you one box that is both modem and router.
- The router shares that connection. If the modem and router are separate boxes, a cable runs from the modem to the router's Internet port. Microsoft's Ethernet page calls this "the Internet port that's used to connect your modem and router".
- Your devices join the router by Wi-Fi or by cable in one of the router's numbered LAN ports.
If the modem and router are not powered on and their lights are not steady, nothing you do on the computer will help. Check that first, then pick a method below.
How to connect to the internet with Wi-Fi on Windows
- Select the Network, Sound or Battery icons on the right side of the taskbar. Microsoft uses this as the starting point in its Wi-Fi troubleshooting steps.
- Make sure Wi-Fi is turned on. If it is off, switch it on. Also check that Airplane mode is off under Settings > Network & internet > Airplane mode, because Airplane mode turns the wireless radios off.
- Open the list of available networks and select your own network by name.
- Select Connect and type the Wi-Fi password when asked.
Pick your own network carefully. In an apartment building the list can show a dozen similar names, and the one you want is the name set on your router. Home routers usually have the default name and password on a label on the device, as long as nobody has changed them. That label is a typical place to look, not a rule, so if the password has been changed you need to ask whoever set it up or sign in to the router.
Many routers send out two networks, a 2.4 GHz band and a 5 GHz band. Microsoft notes that if both appear in your list, you can try connecting to the other band when one has problems.
How to connect to a known Wi-Fi network again
Windows remembers networks it has joined. To manage them, go to Settings > Network & internet > Wi-Fi and select Manage known networks. Select a network and click Forget if it will not reconnect, then join it again and re-enter the password. This is the fix when a router's password has changed since your last visit and the saved one no longer works.
How to connect to the internet with Ethernet on Windows
- Push one end of the cable firmly into your PC's Ethernet port and the other end into a LAN port on the router. Microsoft says to confirm the cable is firmly seated at both ends.
- Do not use the router's Internet port. That port is for the modem.
- Open Settings > Network & internet. On Windows 11, Microsoft says the status should show
Connectedunder the network connection name. On Windows 10 it should showYou're connected to the Internet.
You do not turn anything on. The router normally hands your PC an address automatically. If the cable does not connect, the article on connecting to Ethernet on Windows and Mac goes through the cable, driver and network reset steps in order.
How to connect a Mac to the internet with Ethernet
- Connect the cable to the Mac, using an adapter if the Mac has no Ethernet port.
- Choose Apple menu > System Settings, then click Network in the sidebar.
- Click the Ethernet service. Apple says that in many cases you are connected to the internet automatically once the cable is in.
Apple's page only asks you to configure the service by hand if that does not happen. In the service's Details panel, open TCP/IP and choose the method your internet provider recommends from the Configure IPv4 menu: Using DHCP, Using DHCP with manual address, or Manually. For a normal home router, leave it on DHCP and do not type anything in.
For joining Wi-Fi on a Mac or on a phone, use the Wi-Fi item in the menu bar or in Settings. This page does not give click-by-click steps for those, because Apple's own pages for them could not be opened while this article was written.
How to check that you are connected
The quickest check is to open a website that you have not visited recently. If you want something more precise, open Command Prompt on Windows and run:
ipconfig
Find the adapter you are using (Ethernet or Wi-Fi) and read two lines: the IPv4 address, which your router gave you, and the Default Gateway, which is the router's own address. Example output, with typical home values that yours may not match:
Wireless LAN adapter Wi-Fi:
IPv4 Address. . . . . . . . . . . : 192.168.1.20
Default Gateway . . . . . . . . . : 192.168.1.1
Then ping the gateway, using your own value:
ping 192.168.1.1
Microsoft's Wi-Fi page uses this test. Replies mean your PC reaches the router, so a remaining fault may be the modem or your provider. No replies suggest a problem with the router or the link to it. For the full set of checks, including pinging a public address and testing name lookup, see how to check whether you have internet in Windows.
If it says connected but there is no internet
The computer is linked to the router, but the router has no way out, or something later in the chain is failing. Work through these in order:
- Try a second device on the same network. If a phone also has no internet, the fault is the router, modem or provider. If only one device fails, the fault is on that device.
- Restart the modem and router the way Microsoft describes: unplug the router's power cable, then the modem's. Wait at least 30 seconds before plugging the modem back in. Once the modem's lights stop blinking, plug the router in and wait a few minutes for both to start fully.
- Use a cable as a test. Microsoft suggests connecting the PC directly to the modem with Ethernet if you can. If the internet works that way, the Wi-Fi router is the likely problem and not the modem or provider.
- Run the Network troubleshooter in Settings > Network & internet > Status on Windows 11 and follow its steps.
If Wi-Fi connects but keeps dropping
A connection that works and then disappears is a different problem from one that never starts. Distance from the router, the band you picked and the adapter driver are the usual areas to look at. The article on a laptop that keeps disconnecting from Wi-Fi covers those. Once you are online and the connection feels slow, measure it with how to test your internet speed before changing anything.
Connecting where there is no router of your own
In a hotel, a school or a café you join the venue's network the same way as at home, except the router belongs to someone else. Some of these networks open a sign-in page after you join and give no access until you accept their terms. If a page does not load, try opening an ordinary website in your browser to trigger that page. Apple's documentation also covers the reverse case, where a Mac shares its own internet connection as a Wi-Fi network from System Settings > General > Sharing. When it does that, Apple recommends WPA3 Personal if every connecting device supports it, and WPA2/WPA3 Personal if some support only WPA2. It also warns you to investigate possible side effects first when the internet connection and the shared network use the same port, such as Ethernet.
Frequently asked questions
- Do I need a password to connect to the internet?
- Not for a cable. Plug into your router and the connection is usually automatic. For Wi-Fi you need the network's password unless the network is open. On a home router the default network name and password are normally printed on a label on the router, unless someone changed them.
- What is the difference between a modem and a router?
- The modem is the device that connects to your internet provider. The router connects your own devices to that connection, by cable through its LAN ports and wirelessly through Wi-Fi. Microsoft's Ethernet page describes the router port for the modem cable as the Internet port. Some providers supply one box that does both jobs.
- Why does my computer say connected but websites will not load?
- The link to your router works, but the router may have no connection to your provider, or name lookup (DNS) may be failing. Test another device on the same network. If it also fails, restart the modem and router. If only one device fails, the cause is on that device.
- Should I use Wi-Fi or Ethernet?
- Both work. A cable needs no password and is a useful test: Microsoft suggests connecting a PC directly to the modem with Ethernet to find out whether a Wi-Fi router is the cause of a wireless problem. Wi-Fi is the practical choice for phones and for rooms without a cable.