Remote access with VPN

Trying to run OB2 on my linux machine and control from my main PC with IPV4:5000, but when I connect to a VPN and the linux machine I get disconnected. How can I solve this?

If all traffic goes through VPN then you won’t be able to reach the machine. See if your VPN service client supports split tunneling to only tunnel the application you need. You could even set up ngrok (there is a guide on this forum, just search for it) to connect to the OB2 instance even with an active VPN connection I guess.