How to Make a Wi-Fi Router Yourself: 3 Proven Methods Using Scrap Materials

Want to share your internet via Wi-Fi but don't have a router handy? You can build a homemade router from devices that are already gathering dust on your shelf: an old laptop, Raspberry Pi, a smartphone, or even an Arduino with a Wi-Fi module. This solution will come in handy when traveling, at the dacha, or during temporary equipment failures.

In this article - 3 working methods creating a Wi-Fi router from improvised means, with detailed connection diagrams, software settings and unique life hacks for boosting signal without buying antennasWe'll explore the pros and cons of each option and warn you about common mistakes that can render your homemade device inoperable.

Important: DIY routers won't replace professional equipment for an office or a large home, but they'll do a great job of distributing internet to 3-5 devices within a 10-15 meter radius. If you need coverage throughout your entire apartment, it's better to consider budget models from TP-Link or Xiaomi.

1. Router from an old laptop or PC (Windows/Linux)

The most universal way is to turn any computer with a Wi-Fi adapter into an access point. Even netbook 2010 or an office PC with a USB-Wi-Fi dongle. The main requirement is the presence of two network interfaces (for example, Ethernet for incoming Internet and Wi-Fi for distribution).

Advantages of the method:

- Does not require the purchase of additional hardware

- Stable operation with correct settings

- Flexible configuration options (e.g. speed limitation for individual devices)

  • 🖥️ Any PC/laptop with Windows 7+ or Linux (Ubuntu, Debian) will do.
  • 🔌 You need two network connections: one for receiving the internet (cable, 4G modem), the other for distributing (Wi-Fi)
  • ⚡ Minimum requirements: 1 GB RAM, 1.6 GHz processor
  • 📶 Speed ​​is limited by the power of the Wi-Fi adapter (usually up to 150–300 Mbps)

For Windows, we use the built-in function Mobile hotspot (available since version 1607):

  1. Open Settings → Network & Internet → Mobile Hotspot
  2. In the "Sharing" field, select the connection through which you receive the Internet (for example, Ethernet)
  3. Click "Edit", set the network name (SSID) and password (minimum 8 characters, with numbers)
  4. Enable the "Allow to use my Internet connection" switch

📊 What OS do you use for your DIY router?
Windows
Linux (Ubuntu/Debian)
MacOS
Another one

For Linux (Ubuntu for example), run in the terminal:

sudo apt update

sudo apt install hostapd dnsmasq

sudo systemctl stop hostapd

sudo systemctl stop dnsmasq

Then edit the configuration files /etc/hostapd/hostapd.conf And /etc/dnsmasq.conf, specifying the network settings. For complete instructions for your version of Linux, refer to the official documentation—settings may vary.

⚠️ Attention: When distributing the Internet via a PC, it antivirus or firewall may block traffic. Add a port exception. 80 (HTTP) and 443 (HTTPS) if connected devices cannot open websites.

2. Raspberry Pi Router: The Power of a Mini PC

Raspberry Pi 3/4/5 or Orange Pi — an ideal platform for a DIY router thanks to its low power consumption (only 5–10 watts) and Gigabit Ethernet support. This router can be left running 24/7, and can be expanded upon if desired. VPN server or ad blocker (For example, Pi-hole).

What you will need:

- Fee Raspberry Pi (model 4 or 5 is recommended for stable operation)

- microSD card (from 8 GB, class 10)

- Power supply 5V/3A

- Ethernet cable for internet connection

- (Optional) USB Wi-Fi adapter to boost the signal (e.g. TP-Link TL-WN725N)

Raspberry Pi model Max Wi-Fi speed Ethernet ports Energy consumption
Raspberry Pi 3B+ 300 Mbps (2.4 GHz) 1 × 100 Mbps ~6 W
Raspberry Pi 4 800 Mbit/s (2.4 + 5 GHz) 2 × 1 Gbps ~7.5 W
Raspberry Pi 5 1.7 Gbps (Wi-Fi 6) 2 × 1 Gbps ~10 W

Step-by-step setup:

  1. Download the image Raspberry Pi OS Lite (without graphical interface) from the official website and write to microSD using Raspberry Pi Imager or BalenaEtcher.
  2. Connect the board to the network via Ethernet and power it on. Wait 2-3 minutes for the first boot.
  3. Connect via SSH (use ssh pi@raspberrypi.local, the default password is raspberry).
  4. Update the system:
    sudo apt update && sudo apt upgrade -y
    

    sudo apt install hostapd dnsmasq

  5. Set up hostapd to create an access point and dnsmasq for distributing IP addresses. Example config for hostapd:
    interface=wlan0
    

    driver=nl80211

    ssid=MyPiRouter

    hw_mode=g

    channel=6

    wpa=2

    wpa_passphrase=YourPassword123

    wpa_key_mgmt=WPA-PSK

  6. Enable traffic forwarding:
    sudo sysctl -w net.ipv4.ip_forward=1
    

    sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

  7. Start the services:
    sudo systemctl start hostapd
    

    sudo systemctl start dnsmasq

Install the latest version of Raspberry Pi OS|Connect an Ethernet cable to the Internet|Configure a static IP for eth0|Disable built-in Wi-Fi (if using an external adapter)|Check for updates (sudo apt update)

-->

To ensure continuous operation, add services to startup:

sudo systemctl enable hostapd

sudo systemctl enable dnsmasq

⚠️ Attention: If you use Raspberry Pi 3B+ or older, disable built-in Bluetooth — it can interfere with Wi-Fi at 2.4 GHz. Do this with the command:
sudo systemctl disable hciuart

sudo systemctl disable bluealsa

sudo systemctl disable bluetooth

3. Android smartphone as a router: fast and without settings

The easiest way to distribute Wi-Fi is to use a smartphone Android 6.0+ or iOS 12+Every modern phone has a hotspot feature, but few know how to optimize it for stable operation.

How to enable:

  1. On Android: Settings → Network & Internet → Hotspot & Tethering → Portable Hotspot
  2. On iPhone: Settings → Tethering

Tips to improve signal:

- Place the phone closer to the center of the room (not near a microwave or other sources of interference).

- If the speed is low, turn off power saving for mobile data (on Android: Settings → Battery → Optimization mode → Mobile data).

- For Android smartphones with root access, you can install Fing or NetMaster to fine-tune the Wi-Fi channel.

  • ⚡ Maximum speed: up to 150 Mbps (depending on phone model)
  • 🔋 Battery consumption: ~20–30% per hour with active use
  • 📱 Best models for distribution: Samsung Galaxy S22+, Xiaomi Redmi Note 11 Pro, iPhone 13 Pro
  • 🚫 Limitation: Most carriers block USB tethering, but Wi-Fi usually works

If the access point turns off on its own:

- On Android, check the settings Automatic shutdown (must be turned off).

- Reset network settings on your iPhone: Settings → General → Transfer or reset iPhone → Reset network settings.

- Install the application PDANet+ (requires root on Android) if the operator blocks standard distribution.

4. Boosting the Signal of a Homemade Router: 5 Working Methods

Even the simplest DIY router can be improved without purchasing expensive equipment. Here are some proven methods:

  1. Antenna from a canTake an empty tin can (such as a coffee can), cut off the bottom, and attach it vertically to the Wi-Fi adapter. This will create a directional signal. Effectiveness: +10–15% range.
    Why does the bank work?

    The tin can acts as a passive reflector, focusing the signal in one direction. This is similar to a "waveguide" antenna, but with less efficiency.

  2. Positioning: Raise the router 1–2 meters (perhaps on a cabinet). The Wi-Fi signal spreads better from top to bottom.
  3. Changing the channelIn densely populated areas, Wi-Fi networks interfere with each other. Use an app Wi-Fi Analyzer (Android) or sudo iwlist wlan0 scan (Linux) to find the least crowded channel (eg 1, 6 or 11 for 2.4 GHz).
  4. Firmware for Wi-Fi adapter: Some USB adapters (eg. TL-WN722N) support alternative firmware with increased transmit power (up to 1 W instead of the standard 0.1 W). Look for firmware on forums. OpenWRT or DD-WRT.
  5. USB powered: If the router is on Raspberry Pi or the USB modem loses connection, check the voltage. Use USB hub with external power supply or a cable with a ferrite ring for stabilization.

For advanced users: If your homemade router is on Linux, install OpenWRT — is specialized firmware for routers with advanced QoS, VPN, and network monitoring settings. It even supports older PCs with a single network port.

5. Common mistakes and how to avoid them

About 60% of problems with homemade routers arise from three factors: incorrect network settings, IP address conflicts, or insufficient power. Let's take a closer look at these.

Problem Cause Solution
Devices connect to Wi-Fi, but the internet doesn't work. Network Address Translation (NAT) is not enabled. Do it sudo sysctl -w net.ipv4.ip_forward=1 (Linux) or check your sharing settings in Windows
The Wi-Fi hotspot disappears after 5-10 minutes Power saving turns off the adapter Disable sleep mode for Wi-Fi in power settings (Windows) or set iwconfig wlan0 power off (Linux)
Low speed (less than 10 Mbps) 2.4 GHz channel congestion Switch to 5GHz (if supported) or change channel to 1, 6, or 11
The router overheats and turns off. Insufficient cooling (specific to Raspberry Pi) Install heatsinks or an active cooler. A case with ventilation is required for the Pi 4/5.

If the homemade router is on Raspberry Pi does not provide IP addresses to devices:

- Check if it is running dnsmasq:

sudo systemctl status dnsmasq

- Make sure that in the file /etc/dnsmasq.conf the correct IP range is specified (e.g. dhcp-range=192.168.10.100,192.168.10.200,255.255.255.0,24h).

⚠️ Caution: When using Raspberry Pi Zero W (single-port model) You cannot receive and distribute internet via Wi-Fi at the same time.In this case, connect to the Internet via a USB-Ethernet adapter.

6. Homemade Router Security: 4 Essential Steps

Homemade routers are more likely to be targeted by hackers than factory-made devices. Here are the minimum security measures:

  1. Complex password: Use a combination of 12+ characters with numbers, capital letters and special characters (eg. WiFi@Home2026!$Rt). Avoid simple passwords like 12345678 or dates of birth.
  2. Disable WPS: The WPS protocol is vulnerable to brute-force attacks. In the config hostapd make sure the line wps_state=2 missing or commented out.
  3. Update your software: Perform regularly:
    sudo apt update && sudo apt upgrade -y

    For Windows, enable automatic updates for network adapter drivers.

  4. MAC filtering: Restrict network access to known devices only. hostapd.conf add:
    macaddr_acl=1
    

    accept_mac_file=/etc/hostapd/accept_mac.list

    To file accept_mac.list Enter the MAC addresses of the allowed devices (you can find them in the Wi-Fi settings on your device).

For advanced protection, set up guest network (if your router is a homemade Linux router). This will isolate untrusted devices from the main network. Here's an example of setting it up using iptables:

# Create a separate subnet for guests

sudo iptables -A FORWARD -i wlan0 -o eth0 -s 192.168.20.0/24 -j ACCEPT

sudo iptables -A FORWARD -i eth0 -o wlan0 -d 192.168.20.0/24 -j ACCEPT

Block guests' access to the local network

sudo iptables -A FORWARD -i wlan0 -o wlan0 -s 192.168.20.0/24 -d 192.168.10.0/24 -j DROP

7. Alternative methods: Arduino, ESP8266 and others

If you have it at hand Arduino or ESP8266/ESP32, they can also be turned into a simple router. These methods are suitable for IoT projects or distributing internet to 1-2 devices (for example, for a smart home).

For ESP8266 (cost ~$5) you will need:

- Module NodeMCU or Wemos D1 Mini

- Firmware ESP8266WiFi (for Arduino IDE)

- Power supply 5V/1A

Example code for distributing Wi-Fi (open network without password):

#include 

const char* ssid = "ESP_Router";

const char* password = ""; // Leave blank for open network

void setup() {

Serial.begin(115200);

WiFi.softAP(ssid, password);

Serial.println("Access point started");

Serial.print("IP address: ");

Serial.println(WiFi.softAPIP());

}

void loop() {

// We do nothing

}

Limitations of the method:

- Speed: up to 2–5 Mbps (depending on the ESP model)

- Number of connected devices: 1–3

- No NAT support - devices will be on the same network as the ESP, which is unsafe for the public Internet.

To connect the ESP to the Internet and distribute it further (bridge mode), use the library WiFiClient and set up call forwarding manually. This method is more complex and requires programming knowledge.

⚠️ Attention: Modules ESP8266/ESP32 They are not designed for 24/7 operation like routers. Under prolonged load, they overheat and may fail. Use them only for temporary tasks.

FAQ: Frequently Asked Questions about DIY Routers

Is it possible to make a router from an old TV with Wi-Fi?

Technically possible, but extremely inconvenient. TVs on Android TV or webOS do not support access point mode. The only option is to connect to a TV box (for example, Xiaomi Mi Box) A USB-Ethernet adapter and configure sharing via the terminal (root required). It's easier to use a smartphone or laptop.

Which method is the most reliable for continuous use?

Raspberry Pi 4/5 with firmware OpenWRT — is the optimal option for 24/7 operation. It consumes little power (7-10 watts), supports Gigabit Ethernet, and allows for fine-grained network configuration. An older Linux PC is an alternative, but it will consume 10-20 times more power.

Is it possible to distribute Wi-Fi from a 4G modem without a computer?

Yes, if you have a USB modem that supports it. Wi-Fi Hotspot (For example, Huawei E5577 or ZTE MF920V). Connect the modem to a power supply (5V/2A) and activate the access point mode in its web interface (usually accessed at 192.168.1.1 or 192.168.0.1). The speed will be limited by the capabilities of the modem (usually up to 50–100 Mbps).

How to increase the signal range of a homemade router?

In addition to the can antenna (see section 4), try:

  • 📡 Use directional antenna from an old router (connected via an SMA connector to a USB-Wi-Fi adapter).
  • 🔄 Install repeater (repeater) based on a second Raspberry Pi with firmware OpenWRT.
  • 🔌 Change power unit to a more powerful one (for example, 5V/3A instead of 5V/1A) - this will stabilize the operation of the adapter.

Is it legal to use a homemade router?

Yes, if you:

  • 📶 Do not interfere with other networks (use permitted channels 1–13 for 2.4 GHz).
  • 🔒 Don't hack other people's networks for distribution (for example, don't connect to your neighbor's Wi-Fi without permission).
  • 📄 Don't use it for illegal activities (for example, bypassing ISP blocks).

In most countries (including Russia) the creation personal Access points do not require a license if the transmit power does not exceed 100 mW (0.1 W) at frequencies of 2.4–2.5 GHz or 5.15–5.35 GHz.