fabio914 / RealityMixer

Mixed Reality app for iOS
GNU General Public License v2.0
783 stars 63 forks source link

connection failed, but telnet debugger successed. #37

Open sp958857 opened 3 years ago

sp958857 commented 3 years ago

微信图片_20210117012110 telnet debugger 微信图片_20210117012117

build:0.1.7(9) device: iPhone xr, iOS: 14.3

RamonBeast commented 3 years ago

Same thing happening for me. It used to work fine until a few days ago.

sp958857 commented 3 years ago

Same thing happening for me. It used to work fine until a few days ago.

any clues? it's weird

RamonBeast commented 3 years ago

nothing, I tried all things I could but it just doesn't connect, though the port is clearly open and accessible. I hope @fabio914 can give advice/suggestions on what to do?

fabio914 commented 3 years ago

Make sure that the app can access your local network:

IMG_7E58664FDDD8-1

Try restarting your Quest if you're still seeing issues.

sp958857 commented 3 years ago

Make sure that the app can access your local network:

IMG_7E58664FDDD8-1

Try restarting your Quest if you're still seeing issues.

thx for reply, maybe this is the key: i installed the app from altserver or testflight, which make me find nothing named "Reality Mixer" in my "Settings" but indeed when i first lauch the app, the confirm dialog poped up, which ask me to give it authority to access local network. i'm sure I clicked yes, also i restarted the quest2 to test it again, but it just failed.

i guess there are something wrong with the app installed by the altServer or testflight on ios 14.3?

RamonBeast commented 3 years ago

Thanks @fabio914 not sure what's going on but this is my list of things

  1. Rebooted everything (router, iphone and oculus) to be on the safe side
  2. Double check apps permission, shown below: IMG_4315
  3. ADB says the port is open and accessible on all interfaces: image
  4. nmap from another machine confirms and netcat connects without issues: image
  5. The app still times out: IMG_4316

I can access it even from the iphone using terminal but not with the app unfortunately.

sp958857 commented 3 years ago

@RamonBeast , It seems more complicated then we thought now. LOL

RamonBeast commented 3 years ago

@sp958857 it's very weird indeed, my iOS version didn't change, the network seems to have no issues. I'm really curious to know what happened hehe

sp958857 commented 3 years ago

@RamonBeast @fabio914 I found something new: I cloned and built this repo, ran this app on iOS Simulator successfully, but failed on my own iPhone XR. then I cloned and ran the SwiftSocket , the iOS sample works fine both on simulator and device (I modified a bit of code to connect to the same ip and port) sorry I'm not a iOS developer, have no idea about this.

RamonBeast commented 3 years ago

@sp958857 did you solve this eventually? I too can connect from a normal computer (or a simulated app) to the headset but still no luck from the phone unfortunately

GiddensJu commented 3 years ago

same problem here. I got Quest2 and Iphone 11 but have trouble connecting when it comes to calibration. About app setting, I cannot find it in the iphone-setting-general, so I am not quite sure whether it is the problem or not, but I have permitted network connection when I first clicked on the connect button.

sp958857 commented 3 years ago

I found a way out, but im not sure it will work for other guys. i appended 2 authority in the info.plist as below, then recompiled the app, after that, when i launch the app, it will ask for the network authority. but calibration will failed as before. but when i launch the app from testflight, it works! dont know why, but just works.

2DBFB8B8-D0EB-49E2-94E2-5A853CEF8A74