Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6814

Advanced users • Setting up my rpi in wifi ap mode without sharing gateway

$
0
0
So,
I want to be able to connect to my Raspberry Pi locally through Wi-Fi with my phone. I want to use a QR code to connect to the Wi-Fi; I don't want to set the IP manually.
However, when I connect my phone to the Wi-Fi, it also receives a gateway. My phone then complains that the Wi-Fi doesn't have an internet connection, which is correct and intentional.

If I connect my PC to the Raspberry Pi via wired Ethernet and set the IP manually on the Ethernet adapter without configuring a gateway, the PC still has internet access through the already connected Wi-Fi (not the Raspberry Pi Wi-Fi). If I set a gateway, I lose internet access because the PC tries to connect to the internet through the configured gateway.
So, I guess what I want is to be able to connect to my Raspberry Pi over Wi-Fi with my phone without losing the internet connection it already has through mobile data (4G/5G). I want to access the web server on the Raspberry Pi and Google my favorite restaurant at the same time.

Existing connection, using nmcli.

Code:

[connection]id=SomeIDuuid=SomeUUIDtype=wifiautoconnect=falseinterface-name=wlan0permissions=[wifi]band=bghidden=truemac-address-blacklist=mode=apssid=SomeSSID[wifi-security]key-mgmt=wpa-pskpsk=SomeSecretPSK[ipv4]address1=192.168.0.1/24dns-search=method=shared[ipv6]addr-gen-mode=stable-privacydns-search=method=auto[proxy]

Best regards

Statistics: Posted by steffeng — Tue Apr 15, 2025 12:46 pm — Replies 0 — Views 10



Viewing all articles
Browse latest Browse all 6814

Trending Articles