How to run SERVER on phone, and PLAYER on PC?

Description

It works fine when I run them on the same network, my phone can act as server with no issue. However, once I go outdoors and onto a data connection, I can’t figure out how to connect to the phone from the PC.

Using either the IP shown in the app after starting the server, or my “public IP” both fails.

Is there any solution you can think of where connecting is done through authentication instead? For example, when I use Google Remote Desktop, no matter what network I use I can connect both ways, as both devices are logged into the same Google account.

Otherwise, a solution where the app runs on another server on the phone could work, but I don’t know how to achieve this. Thanks!

Devices

Please note the model and versions of your devices.
For example, if you’re trying to connect a phone to a laptop:

Phone:
newest android

s25 phone

Desktop:

Win 11 giga pc

The easiest right now would be to use a virtual network. For example, you can install https://tailscale.com/ on both devices.


Related feature request

Yes thanks I had the same idea last night and it’s working well so far.

My use case is pretty odd - I am live streaming outdoors from my phone via RTMP proxy to my home PC streaming, but the live stream apps do not have the ability to forward phone internal audio for some reason. So, if I want to also send my music to the live stream instead of only hearing it myself, I need to relay the audio. Super janky solution to use a VPN + Audio relay but it’s working! Thanks.