Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server does not show up on LAN server list #15

Closed
pupshadow opened this issue Jul 27, 2019 · 14 comments
Closed

Server does not show up on LAN server list #15

pupshadow opened this issue Jul 27, 2019 · 14 comments
Labels
bug Something isn't working

Comments

@pupshadow
Copy link

i keep getting the server to star at idle connection handler and wont go further.

Starting up with remote server IP: ********:41199
INFO: 2019/07/27 ******** proxy.go:60: Binding proxy server to: 0.0.0.0:19132
INFO: 2019/07/27 ******** proxy.go:71: Proxy server listening!
INFO: 2019/07/27 ******** proxy.go:192: Starting ping handler
INFO: 2019/07/27 ******** proxy.go:209: Starting idle connection handler

@slickmin
Copy link

slickmin commented Sep 3, 2019

same

@dubmn
Copy link

dubmn commented Sep 5, 2019

I am having the exact same issue as well. Mentioning this is on the precompiled Windows version, running on Windows 10, MC Bedrock server is 1.14.

Thank you,

@jhead
Copy link
Owner

jhead commented Sep 8, 2019

Hey @pupshadow @slickmin @dub24 can you describe your setups?

  • What device are you running phantom on?
  • What device are you trying to connect via Minecraft on?
  • How are your devices connected to your network?
  • What Bedrock/MCPE server software are you running?

side note: I noticed that phantom didn't work when running it for the first time, when Windows pops up the firewall window and asks if you want to allow access. After pressing allow and restarting phantom, it worked as expected.

@slickmin
Copy link

slickmin commented Sep 8, 2019 via email

@dubmn
Copy link

dubmn commented Sep 8, 2019

Running Phantom on Windows 10.

Trying to connect on Xbox One.

Gigabit wired network.

Bedrock server v1.12.0 hosted at Apex Hosting.

I accepted the firewall and restarted with no luck. Also disabled my firewalls to test as well with the same result.

Hey @pupshadow @slickmin @dub24 can you describe your setups?

  • What device are you running phantom on?
  • What device are you trying to connect via Minecraft on?
  • How are your devices connected to your network?
  • What Bedrock/MCPE server software are you running?

side note: I noticed that phantom didn't work when running it for the first time, when Windows pops up the firewall window and asks if you want to allow access. After pressing allow and restarting phantom, it worked as expected.

@jhead
Copy link
Owner

jhead commented Sep 17, 2019

Hey all, could you try phantom v0.2.0 and let me know if the issue persists?

@dubmn
Copy link

dubmn commented Sep 17, 2019

I was able to run 0.2.0 and see the LAN server on both my Windows 10 PC and Xbox One. When I try to connect, I get the message "Unable to connect to world.". Below is what my command window looks like in Windows 10. Of course I masked my server IP address.

Starting up with remote server IP: XX.XXX.XXX.81:25600
INFO: 2019/09/17 00:30:01 proxy.go:81: Binding ping server to: 0.0.0.0:19132
INFO: 2019/09/17 00:30:01 proxy.go:90: Binding proxy server to: 0.0.0.0:50476
INFO: 2019/09/17 00:30:01 proxy.go:97: Proxy server listening!
INFO: 2019/09/17 00:30:01 proxy.go:244: Starting idle connection handler
INFO: 2019/09/17 00:30:01 proxy.go:201: Opening connection to XX.XXX.XXX.81:25600 for new client 192.168.1.11:53713!
INFO: 2019/09/17 00:30:01 proxy.go:216: Opening connection to XX.XXX.XXX.81:25600

Thank you,

Jason

@Xoidren
Copy link

Xoidren commented Sep 19, 2019

I'm still getting this problem even after moving to the new version.

@jhead jhead added the troubleshooting Troubleshooting an issue but not sure if it's a bug label Sep 22, 2019
@jhead jhead changed the title stuck at idle connection handler Server does not show up on LAN server list (stuck at idle connection handler) Sep 24, 2019
@jhead
Copy link
Owner

jhead commented Sep 24, 2019

I confirmed a strange bug specific to Windows. I noticed that it doesn't always show up on Windows if you're running phantom on the same PC.

If you use two different Windows 10 PCs and run phantom and one and Minecraft on the other, it shows up instantly; if you run them both on the same PC, sometimes it works and sometimes it doesn't. If it doesn't work, I could make it work by opening up Minecraft on another device (any device), and the LAN server shows up on the original PC instantly.

I'll continue looking into it but it seems very specific to Minecraft for Windows 10 + phantom on the same machine. I haven't run into this issue with any other combination of devices, particularly my Xbox where this does not happen.

@jhead jhead added bug Something isn't working and removed troubleshooting Troubleshooting an issue but not sure if it's a bug unconfirmed labels Sep 24, 2019
@jhead jhead changed the title Server does not show up on LAN server list (stuck at idle connection handler) Server does not show up on LAN server list Sep 24, 2019
@nkelemen18
Copy link
Contributor

Hy all!

I think the source of this problem is that Windows 10 UWP applications are not allowed to access loopback/localhost.

See:
UWP Enable local network loopback
Can’t connect to localhost Win10 server with Minecraft Win10 Edition

@ProdigyGG

This comment has been minimized.

@blubbll
Copy link

blubbll commented Apr 23, 2020

i have the issue that the server only shows up in friends tab when i actually add it at the servers

@mocha
Copy link

mocha commented Jun 18, 2020

I think the source of this problem is that Windows 10 UWP applications are not allowed to access loopback/localhost.

Yeah, I think this may be it. From the MSDN Docs:

To maintain security and network isolation, loopback connections for IPC are blocked by default for packaged applications. You can enable loopback connections among trusted packaged application using capabilities and manifest properties.

All packaged applications participating in loopback connections will need to declare the privateNetworkClientServer capability in their package manifests.

Testing this out a bit, I can confirm that Windows 10 + local Windows client doesn't seem to work.

  • Phantom on Linux VM + Windows MC client = worked
  • Phantom on Windows 10 + iPad client = worked
  • Phantom on Windows 10 + Minecraft Windows 10 (same machine) = no work

So it sounds like you'd have to package phantom as a UWP app with an appmanifest that overrides the loopback setting. IMO, this particular (no local phantom <-> local windows client) seems pretty low priority, since a client running on Windows shouldn't need it anyway. ;-P

@jhead
Copy link
Owner

jhead commented Jun 13, 2021

Closing this issue since there were a couple different problems at play here, but I opened a new issue specifically for the Windows 10 UWP issue ^

Thanks all! Feel free to open another issue if you're still running into issues with the latest version of phantom.

@jhead jhead closed this as completed Jun 13, 2021
SondreKindem pushed a commit to SondreKindem/mobilePhantom that referenced this issue Jul 23, 2024
…r-testify-1.x

Update module github.com/stretchr/testify to v1.8.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants