ProxyPass icon indicating copy to clipboard operation
ProxyPass copied to clipboard

Unable to Use Proxy Pass to Connect to LAN Game on Same Machine

Open Kas-tle opened this issue 1 year ago • 3 comments

Summary

I am attempting to use ProxyPass to connect to a LAN game hosted on the same Windows 11 PC as the ProxyPass instance.

Reproduction

  1. I obtain the LAN port with:
(Get-NetUDPEndpoint -OwningProcess (Get-Process Minecraft.Windows).Id -LocalAddress 0.0.0.0).LocalPort
  1. The correct port will be the first or second result, and can be tested with attempting to connect via another Minecraft Bedrock instance on the local network through the server tab (e.g. 192.168.1.3:56516). The correct port can also be obtained by connecting to the LAN game normally through the friends tab and running Wireshark.

  2. I then set ProxyPass to use the correct LAN port and 127.0.0.1 for destination port lastly, try to connect to proxypass through the secondary device (e.g. 192.168.1.3:19122).

  3. I receive a timeout error in the ProxyPass console, indicating that ProxyPass cannot reach the LAN instance.

Additional Context

I am able to successfully use ProxyPass to connect to a LAN instance run on my iPhone, so this issue would seem to be specific to when ProxyPass and the LAN instance are run on the same machine.

I have also confirmed that it is at least theoretically possible to connect to a LAN instance on the same machine by using Minecraft Preview to attempt to connect to the LAN instance in the friends tab. This of course give an outdated instance error, but that at least confirms it is trying to connect to the right place. I also confirmed that 127.0.0.1 is the correct interface and that the obtained port is correct by adding a server and the server menu, and attempting to connect to the same outdated result.

Kas-tle avatar Sep 11 '22 18:09 Kas-tle