It’s Thanksgiving holiday week, and Black Friday sales are in full swing. I must admit, walking out of Best Buy with a PS5 box in my hand felt almost as thrilling as buying a cool car—I even buckled it up on the passenger seat! Honestly, I didn’t expect to feel that way, but here we are. With the holiday deals in full force, it seemed like the perfect opportunity to finally snag a PS5. However, when I got home, I hit a snag: I needed to register its MAC address on my university’s network to get online, but the registration site iprequest.stanford.edu was down. Thankfully, my laptop was already registered and had internet access through the university Wi-Fi. To work around the issue, I turned my laptop into a Wi-Fi hotspot and shared the connection with my PS5. Here’s how I made it work.
Step 1: Install the Necessary Tools
To turn your Linux laptop into a hotspot, you’ll need a tool called create_ap
, which allows you to create a virtual Wi-Fi access point using your laptop’s Wi-Fi adapter.
-
Update System and Install Dependencies
$ sudo apt update $ sudo apt install git build-essential dnsmasq hostapd -y
This command ensures your package list is up-to-date (
apt update
) and installs essential tools likednsmasq
(for managing network address translation) andhostapd
(for creating access points). -
Clone and Install
create_ap
$ git clone https://github.com/oblique/create_ap $ cd create_ap $ sudo make install
create_ap
is a script that configures a hotspot by combining hostapd (to manage the access point) and dnsmasq (to assign IP addresses). This step downloads the tool and installs it to your system.
Step 2: Identify Your Wi-Fi Interface
You need to know the name of your Wi-Fi interface to use it for the hotspot.
-
Run the following command:
$ ip link
This command lists all network interfaces on your system. You’ll see interfaces like
lo
(loopback),enp0s31f6
(Ethernet), and your Wi-Fi interface (e.g.,wlp2s0
). -
Look for the Wi-Fi interface (typically starts with
wl
). In my case, it waswlp2s0
.
Step 3: Disconnect from Eduroam
To allow your Wi-Fi adapter to function as a hotspot, you need to temporarily disconnect it from the university’s Wi-Fi network.
- Run this command:
$ nmcli device disconnect wlp2s0
nmcli
is the NetworkManager command-line interface. This command disconnects the specified Wi-Fi interface (wlp2s0
) from its current network, freeing it for hotspot use.
Step 4: Create the Hotspot
Now that your Wi-Fi adapter is free, you can set up the hotspot.
-
Run the following command:
$ sudo create_ap --freq-band 2.4 wlp2s0 wlp2s0 <SSID> <PASSWORD>
create_ap
: The tool you installed earlier to create a Wi-Fi access point.--freq-band 2.4
: Forces the hotspot to use the 2.4GHz band, which is widely supported by devices.- The first
wlp2s0
: Specifies the Wi-Fi interface connected to the university network. - The second
wlp2s0
: Specifies the same interface for creating the hotspot (a virtual interface). <SSID>
: The SSID (network name) for the hotspot.<PASSWORD>
: The password for connecting to the hotspot.
-
Your laptop will now act as a Wi-Fi hotspot, and your PS5 can connect to it using the SSID and password.
Step 5: Reconnect to Eduroam
After starting the hotspot, you need to reconnect your laptop to the university’s Wi-Fi to ensure internet access for the hotspot.
- Reconnect using:
This command re-establishes your laptop’s connection to the university network, allowing it to share the internet connection with the PS5 via the hotspot.$ nmcli device wifi connect eduroam
Step 6: Connect Your PS5 to the Hotspot
Once the hotspot is running, follow these steps on your PS5 to connect:
- On your PS5, go to Settings > Network > Set Up Internet Connection.
- Select Wi-Fi and choose the hotspot name (SSID) you set up earlier (
<SSID>
). - Enter the password (
<PASSWORD>
) when prompted. - Wait for the PS5 to verify the connection. Once connected, run a connection test to ensure internet access.
Conclusion
By following these steps, I was able to share my laptop’s internet connection with my PS5 while bypassing the MAC address registration issue. The PS5 connected seamlessly to the hotspot and had full internet access, letting me dive into my first game with less delay.
Appendix: Performance Considerations
Why Internet Speed May Be Slower
When using a laptop as a hotspot, you might notice that devices connected to it, like your PS5, experience slower internet speeds compared to the laptop itself. This happens due to:
- Bandwidth Sharing: Your laptop’s Wi-Fi adapter is sharing its connection between the university network (eduroam) and the hotspot, reducing the bandwidth available to the PS5.
- Increased Latency: Data must travel from eduroam to your laptop, then to the PS5, introducing additional delay.
- Signal Interference: The hotspot operates in the 2.4GHz band, which is more prone to interference from other devices, further affecting performance.
Suggestions for Better Performance
- Minimize Other Network Usage: Avoid heavy internet activity on the laptop while the hotspot is active.
- Switch to Ethernet: If possible, connect the PS5 directly to the laptop via an Ethernet cable to eliminate the hotspot bottleneck.
- Use a USB Wi-Fi Adapter: A second adapter can handle the hotspot while the internal adapter remains connected to eduroam.