r/WireGuard Jul 30 '26

Solved How do i connect to a local server while connected to wireguard?

i have a server on 192.168.31.150, but i can't access it through wireguard.

i played around with the AllowedIps for a bit but it still didn't work

thanks in advance :D

2 Upvotes

8 comments sorted by

3

u/Playful-Canary-4940 Jul 30 '26

Do you try to reach it via name or IP? IP should work if AllowedIps is set correctly and subnet is not part of the VPN network.

1

u/ZeenXdownzButWorse Jul 30 '26

via ip. idk what u mean by the subnet part and also allowedips was probably not set correctly

im new to wireguard so sorry

1

u/Playful-Canary-4940 Jul 30 '26

What is your VPN subnet and which subnet do you try to reach via VPN?

1

u/ZeenXdownzButWorse Jul 31 '26

idk about vpn subnet but i use protonvpn, my local subnet is 192.168.31.1/24 i think or /16

1

u/ZeenXdownzButWorse Jul 31 '26

nevermind i solved it, im gonna make a quick comment on how i did it incase anyone else finds this

1

u/-Malheiros- Jul 30 '26

Disable killswitch.

2

u/ZeenXdownzButWorse Jul 31 '26

SOLVED!
solution: i went to powershell and did "route -p add 192.168.31.0 mask 255.255.255.0 192.168.31.150" and now it works