Understanding DHCP Client on MikroTik and Why It Matters Before Installing XenFi Billing software
When setting up a MikroTik router in many installations, people immediately start configuring hotspot settings, DHCP servers, or firewall rules. However, before running any configuration scripts, especially XenFi scripts for remote access or automated router setup, the router must already have a working internet connection.
This is where DHCP Client becomes important.
What Is DHCP Client?
DHCP stands for Dynamic Host Configuration Protocol.
A DHCP Client is a feature that allows a device—in this case your MikroTik router—to automatically receive network information from an ISP or upstream router.
When DHCP Client is enabled:
This allows the router to access the internet without manually configuring these values.
Why DHCP Client Is Important During XenFi Setup
At XenFi, we use scripts that prepare the router for hotspot deployment and remote management.
These scripts need the router to already be connected to the internet because the router must be able to:
If the router does not have internet access, the scripts will not run successfully.
Where the Internet Comes Into the Router
In most MikroTik installations, the internet cable from the ISP is connected to:
ether1
This port usually acts as the WAN port, meaning it is responsible for bringing internet into the router.
Your computer or laptop is normally connected to another port such as; ether2, ether3, ether4, ....
This allows you to access the router using WinBox.
How to Check DHCP Client in WinBox
To confirm the router is receiving internet:
Open WinBox
Connect to the router
Navigate to:
IP → DHCP Client

Here you should see the DHCP Client configured > ether1 (or whichever port is used for WAN).
Understanding the DHCP Client Status
Once DHCP Client is active, Mikrotik will attempt to obtain an IP address from the ISP.
If everything is working correctly, the status will show:
Status: bound
This means the router has successfully received network information from the ISP.
You will also see:
The assigned IP address
The gateway
The lease time

The Lease Timer (Why you see a Countdown)
When DHCP Client receives an IP address, it is given a lease time.
This lease time counts down on the DHCP Client screen.
The countdown simply indicates how long the router can keep using the assigned IP address before renewing it with the ISP.
This is completely normal and shows that the DHCP connection is active.
When the timer expires, the router automatically renews the lease.
What if DHCP Client Shows "Searching"?
If the status shows Searching, it means the router is not receiving internet.
Common reasons include:
ISP cable plugged in wrong port
Internet service from ISP is down
DHCP Client not configured on correct interface
ISP cable not fully plugged in

Why We Always Check DHCP Client First
Before configuring hotspots or running XenFi scripts, confirming DHCP Client ensures that:
Skipping this step can lead to failed setups and unnecessary troubleshooting.
Key Takeaway
DHCP Client may look like a small detail in MikroTik configuration, but it plays a critical role in ensuring the router is properly connected to the internet.
For XenFi deployments, confirming that the DHCP Client is bound and receiving internet is a key step before running setup scripts or configuring hotspot services.
A simple check here can save time and ensure a smooth deployment process.