Home Network Basics for Homelab Beginners: IP, DNS, DHCP

Most homelab problems turn out to be network problems. The app is running, but you can’t reach it. The address changed overnight. A name won’t resolve. If you understand a few basic ideas about how your home network works, those problems stop being mysterious and start being quick fixes.

This guide covers home network basics for homelab beginners, in plain language: IP addresses, DHCP, DNS, ports, and how to find and fix a server’s address. You’ll also learn a short checklist for troubleshooting when something won’t connect. It pairs well with our mini PC homelab guide for beginners, and you’ll use these ideas in nearly every other project on this site.

How a typical home network is laid out

Most home networks look like this:

Internet
   |
Modem / ISP box
   |
Router  (hands out addresses, connects you to the internet)
   |
Switch or Wi-Fi access point
   |
Your devices: laptop, phone, mini PC, TV

Your internet provider’s device brings the connection into your home. The router sits in the middle. It connects your home network to the internet and decides which device gets which address. In many homes, the modem, router, and Wi-Fi are all in one box, but the jobs are still separate.

A switch is a simple device that adds more wired Ethernet ports. You don’t need one to start, but it’s handy once you have a few wired devices.

Wired or Wi-Fi for a homelab server?

Use a wired Ethernet connection for your mini PC whenever you can. Wired connections are faster, more stable, and they don’t drop out. A server that sometimes disappears from the network is a headache. Wi-Fi is fine for your phone and laptop, but your homelab machine should plug in.

IP addresses: how devices find each other

Every device on your network has an IP address, a set of four numbers separated by dots, like 192.168.1.50. It works like a street address. When you open an app on your server from your laptop, your laptop sends the request to the server’s IP address.

Home networks use private address ranges that are reserved for local use. The most common are addresses starting with 192.168., 10., or 172.16. through 172.31.. These are defined in RFC 1918. They aren’t reachable directly from the internet, which is part of why a home network is fairly protected by default.

The subnet and the gateway

Two more terms come up constantly. The subnet describes which addresses belong to your local network. On most home networks it looks like 192.168.1.0/24, which simply means every address from 192.168.1.1 to 192.168.1.254 is on the same local network.

The default gateway is the address of your router, often 192.168.1.1 or 192.168.0.1. Whenever a device wants to reach something outside your home network, it sends the traffic to the gateway first.

DHCP: how addresses are handed out

You probably never typed an IP address into your phone, and that’s because of DHCP. Your router runs a DHCP service that automatically assigns an address to every device that joins, and it also tells each device the gateway and DNS server to use.

The catch for a homelab is that these addresses are usually temporary. They can change after a restart or when a lease expires. If your server’s address changes, every bookmark, setting, and link that pointed to the old one breaks.

Giving your server a fixed address

A server needs to stay at the same address, and there are two ways to do it.

The first and easiest is a DHCP reservation, also called a static lease. You log in to your router, find your server in the list of connected devices, and tell the router to always give it the same address. The server still uses DHCP, so there’s nothing to configure on the machine itself. For most beginners, this is the best choice, because everything stays managed in one place.

The second is a static IP set on the server itself. This works too, but you must pick an address that is outside your router’s DHCP range, or two devices might end up with the same address, which causes confusing connection problems. You’ll also need to enter the gateway and DNS settings by hand.

Whichever you pick, write the address down in your notes.

How to find your server’s IP address

On the server, run:

ip addr

Look for the line starting with inet under your Ethernet interface. The numbers before the slash are your IP address. On many Linux systems, this shorter command also works:

hostname -I

You can also open your router’s admin page and look at the list of connected devices. The router’s address is the default gateway, and the login details are often printed on a label on the router.

DNS: names instead of numbers

Nobody wants to remember numbers, so we use names like example.com. DNS is the system that turns names into IP addresses. When you type a website name, your device asks a DNS server for the matching address.

By default, your router hands out your internet provider’s DNS servers, or a public one. In a homelab, you can run your own DNS server to block ads across the whole network and give your local services friendly names. Pi-hole is a popular choice, and it’s a great first project once you’ve read our Docker Compose tutorial for beginners.

If you can reach a website by its IP address but not by its name, the problem is almost always DNS.

Ports: which app are you talking to?

An IP address gets you to the right machine. A port number gets you to the right app on it. Think of the IP as a building and the port as an apartment number. A web interface might use port 8006 and another app might use 3001, so the full address looks like http://192.168.1.50:3001.

Two machines can’t share the same port for different apps, which is why you sometimes see an error that a port is already in use. The fix is to change one of the port numbers.

A word on safety: don’t open ports to the internet

Your router has a feature called port forwarding, which makes a service on your home network reachable from the internet. Beginners are tempted to use it to reach their homelab while away, and it’s risky. An exposed service can be found and attacked within hours. Keep everything on your local network until you understand firewalls, updates, and secure remote access. Strong passwords and regular updates matter, and so do solid backups in case something goes wrong.

A simple troubleshooting checklist

When you can’t reach something, work through these steps in order. Each one rules out a whole layer.

  1. Check the cable and the lights. Make sure the Ethernet cable is firmly plugged in and the port lights are on.
  2. Ping the server from your laptop. Run ping 192.168.1.50, using your server’s address. If you get replies, the network path works.
  3. Ping the gateway from the server. Run ping 192.168.1.1, using your router’s address. This confirms the server is connected to your network.
  4. Ping an outside address. Run ping 1.1.1.1. If this works, your server can reach the internet.
  5. Ping a name. Run ping example.com. If the last step worked but this fails, the problem is DNS.
  6. Check the app and the port. If pings work but the app doesn’t load, confirm the app is running and you’re using the right port.

This approach, testing from the bottom up, is how network technicians work through problems, and it saves a lot of guessing.

Where to go next

Once these basics feel familiar, you can explore more advanced topics like VLANs, which split one network into separate groups, and running your own DNS server. If you’re still choosing a platform for your server, see our Proxmox vs Ubuntu Server comparison.

Frequently asked questions

What is the difference between a router and a switch?

A router connects your home network to the internet and hands out addresses. A switch just adds more wired ports so more devices can connect to the same network.

Do I need a static IP for my homelab?

You need a stable address, but not necessarily a static IP set on the machine. A DHCP reservation on your router gives the same result with less work.

Why can’t I reach my server by name?

Your device may not know the server’s name, since local names need DNS or a local name service to work. Try the IP address first. If that works, set up local DNS or use the address directly.

Is it safe to leave my homelab on my home network?

Yes, as long as you don’t forward ports to the internet and you keep your software updated.

Wrapping up

Home network basics aren’t complicated once you break them down. Devices find each other with IP addresses, DHCP hands those addresses out, DNS turns names into numbers, and ports pick the right app. Give your server a fixed address through a DHCP reservation, keep it plugged in by cable, and keep it off the open internet. With those habits and the checklist above, most connection problems take minutes to solve.