DHCP reservation - Adam-Cervenec/ESP32-Wake-on-Lan GitHub Wiki
How to Make Your Device Static on LAN
There are generally two ways to assign a static IP address to your device:
- On the router (recommended โ ensures consistency for all devices)
- Directly on the device (Linux/Windows)
On the Router
This method varies depending on your routerโs brand and firmware.
Most Common Approach
- Open your routerโs web interface in a browser (usually
192.168.1.1or192.168.0.1). - Log in:
- Default login is often admin / admin or admin / (blank)
- Sometimes the correct login info is printed on a label on the router itself
- Navigate to LAN settings or DHCP settings. Look for DHCP Reservation (sometimes called Address Reservation or Static Leases).
- You should see a table with columns like IP Address, MAC Address, and Device Name (Alias):
- Enter a device name (alias) โ this can be anything you like.
- Choose a static IP address from your LAN range. Make sure it is outside of the DHCP pool to avoid conflicts. Common examples:
192.168.0.10192.168.0.11192.168.1.10192.168.1.11
- Enter the MAC address of your device.
- Save your changes โ done!
Mikrotik Routers
- Open your Mikrotik web interface (default is
192.168.88.1, unless you changed it). - Log in.
- Go to IP โ DHCP Server โ Leases.
- Find the device you want to make static and click it.
- In the Actions menu, select Make Static.
- Refresh the page, then edit the lease to set your desired static IP address.
- Save changes โ done!
TP-Link
- Open the web interface (
192.168.0.1or192.168.1.1). - Log in (default: admin / admin).
- Go to DHCP โ Address Reservation.
- Click Add New.
- Enter the MAC address of your device, the desired IP address, and a description (name).
- Save, then reboot the router if required.
TP-Link via Deco App
(works only when Deco is set to Router mode, not in Access Point mode)
- Open the Deco app on your phone.
- Go to More โ Advanced โ Address Reservation.
- Tap + Add.
- Select your device from the list of connected devices.
- Assign the desired IP address.
- Save โ done!
ASUS
- Open the router page (
192.168.1.1). - Log in (default: admin / admin).
- Go to LAN โ DHCP Server tab.
- Find Manually Assigned IP around the DHCP list.
- Select your device from the list or manually type in the MAC address.
- Enter the desired IP address.
- Click Add and then Apply.
Netgear
- Open the router page (
192.168.1.1orrouterlogin.net). - Log in (default: admin / password).
- Go to Advanced โ Setup โ LAN Setup.
- Find the section Address Reservation and click Add.
- Select your device from the connected devices list (or enter MAC manually).
- Enter the desired IP address.
- Save your changes.
On Windows 10/11
- Open Control Panel โ Network and Sharing Center.
- Click Change adapter settings.
- Right-click your active connection โ Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) โ Properties.
- Choose Use the following IP address and fill in:
- IP address:
192.168.1.50 - Subnet mask:
255.255.255.0 - Default gateway:
192.168.1.1
- IP address:
- Choose Use the following DNS server addresses and set for example:
- Preferred:
8.8.8.8 - Alternate:
1.1.1.1
- Preferred:
- Save โ done!
On macOS
- Go to System Settings โ Network.
- Select your active network (Wi-Fi or Ethernet).
- Click Details (or Advancedโฆ in older macOS versions).
- Go to the TCP/IP tab.
- From the Configure IPv4 dropdown, select Manually.
- Fill in your details:
- IP Address:
192.168.1.50 - Subnet Mask:
255.255.255.0 - Router:
192.168.1.1
- IP Address:
- Go to the DNS tab and set e.g.
8.8.8.8, 1.1.1.1. - Save โ done!