Modem-routers have a tiny web server inside them, you can connect to that (like any other web server, using a web browser), and change the settings. Indeed, this is where the danger is – if the modem/router has default settings, potentially anyone can log in to it, and see everything you do on the internet! Changing the admin password for this device is a two step process; first we find out how to connect to the modem/router by its IP address, then we log in to change the admin password.
Finding the modem/router IP address, for Windows
- Start menu, type “command”, run the “command prompt” program
- Type, “ipconfig”, press enter
- Look for the “Default Gateway” IP address
- Write this down
- Type “exit” to close the window

ABOVE: Finding gateway IP in Windows. (1) Issuing the command “ipconfig” (2) “Default Gateway” section (3) The IP address we need, highlit in yellow.
Finding the modem/router IP address, for MacOS
- Click the Apple icon (at the top left of the screen) and select System Preferences.
- Click Network.
- Select your network connection and then click Advanced.
- Select the TCP/IP tab and find your gateway IP address listed next to Router.
Finding existing modem/router password
Now we know the IP address, we know how to find the modem/router… but how do we log in? There are a few ways:
- The modem/router might use a default username and password, like “admin” and “admin”, or “admin” and “password”
- You could search online for that modem/router brand and model number, to see what the default setting is
- The modem/router might have a sticker on it that says what the router login details are (see example below). The sticker might be on the back, side or bottom of the device – might be easiest to take a pic of it with your smartphone!
- The manual that came with the modem/router might have this information
- Your ISP can provide this information
Once known, write this down, it’s needed in the next step.

ABOVE: an example router/modem sticker. It has wifi network names and passwords, and below the second barcode, router login details – that’s what we need!
Changing the modem/router password
- Visit the IP address for the Gateway (Router) as found in the previous step
- Enter the existing username and password, as found in the previous step
- Change the admin password
- Every modem/router is a little different. Look in the menu for “admin settings”, “management”, “access control” or similar
- Set a strong and complex password, it does not need to be memorable. Use https://passwordsgenerator.net/, at least 16 characters
- The router may reboot after changing the password, meaning no internet for a few minutes 😱
- Record the new password
- Add it to your personal password manager (while you can add it to your work LastPass account, that’s not ideal we do not need to know it)
- Add the modem/router’s IP address to the record as well, and name it “Home modem/router” or something useful
- Bask in the nerdy feeling of being more secure 🙂