UnityRemote Problem - Sockets?

Hi All,

I downloaded the latest Unity iPhone trial.
I built UnityRemote with XCode and have it on my iPhone.
UnityRemote shows my MAC, which is on the same WiFi network with Unity iPhone running on it already.

When i Tap on my Mac name in UnityRemote, it just hangs for a few minutes and shows an error at the top of UnityRemote that says… “Failed to initiate connection” (screen below)

And the XCode Organizer\Console shows this:

Fri Feb  5 22:11:39 unknown kernel[0] <Debug>: launchd[383] Builtin profile: container (seatbelt)
Fri Feb  5 22:11:39 unknown kernel[0] <Debug>: launchd[383] Container: /private/var/mobile/Applications/E519552E-796A-45D5-A395-50FA114D3465 (seatbelt)
Fri Feb  5 22:11:40 unknown mDNSResponder[18] <Error>: Bad service type in ._unityiphoneremote._tcp.local. Application protocol name must be underscore plus 1-14 characters. See <http://www.dns-sd.org/ServiceTypes.html>
Fri Feb  5 22:11:40 unknown mDNSResponder[18] <Error>: Bad service type in ._unityiphoneremote._tcp.local. Application protocol name must be underscore plus 1-14 characters. See <http://www.dns-sd.org/ServiceTypes.html>
Fri Feb  5 22:11:40 unknown mDNSResponder[18] <Error>: external_start_browsing_for_service: Starting browse for: _unityiphoneremote._tcp.local. PTR
Fri Feb  5 22:11:40 unknown com.apple.mDNSResponder[18] <Notice>: BrowseForService: new key
Fri Feb  5 22:11:40 unknown mDNSResponder[18] <Error>: D2DBrowseListRetain: _unityiphoneremote._tcp.local. PTR refcount now 1
Fri Feb  5 22:11:40 unknown SpringBoard[24] <Warning>: front most app: com.izzysoft.UnityRemote (locked: 0)
Fri Feb  5 22:11:40 unknown SpringBoard[24] <Warning>: ****** Setting zoom level to 1.00 (Zoom OFF, stored level: 1.15) *********
Fri Feb  5 22:11:43 unknown mDNSResponder[18] <Error>: Bad service type in MiniMac._unityiphoneremote._tcp.local. Application protocol name must be underscore plus 1-14 characters. See <http://www.dns-sd.org/ServiceTypes.html>
Fri Feb  5 22:11:43 unknown mDNSResponder[18] <Error>: external_start_resolving_service: MiniMac._unityiphoneremote._tcp.local.
Fri Feb  5 22:11:43 unknown com.apple.mDNSResponder[18] <Notice>: _StartBrowsing
Fri Feb  5 22:11:43 unknown Unity Remote[383] <Warning>: Trying to connect input to 192.168.1.42
Fri Feb  5 22:11:43 unknown mDNSResponder[18] <Error>: external_stop_resolving_service: MiniMac._unityiphoneremote._tcp.local.
Fri Feb  5 22:12:58 unknown Unity Remote[383] <Warning>: Connecting input 192.168.1.42 failed
Fri Feb  5 22:12:58 unknown Unity Remote[383] <Warning>: Trying to connect input to 0.0.0.0
Fri Feb  5 22:12:58 unknown Unity Remote[383] <Warning>: Connecting input 0.0.0.0 failed
Fri Feb  5 22:12:58 unknown Unity Remote[383] <Warning>: Disconnect socket failure: Failed to initiate connection
Fri Feb  5 22:12:58 unknown UIKitApplication:com.izzysoft.UnityRemote[0x2a12][383] <Notice>: TCPMessageSocket::connect(): connect() failed: Operation timed out
Fri Feb  5 22:12:58 unknown UIKitApplication:com.izzysoft.UnityRemote[0x2a12][383] <Notice>: TCPMessageSocket::connect(): connect() failed: Address family not supported by protocol family
Fri Feb  5 22:12:58 unknown mDNSResponder[18] <Error>: Bad service type in ._unityiphoneremote._tcp.local. Application protocol name must be underscore plus 1-14 characters. See <http://www.dns-sd.org/ServiceTypes.html>
Fri Feb  5 22:12:58 unknown mDNSResponder[18] <Error>: Bad service type in ._unityiphoneremote._tcp.local. Application protocol name must be underscore plus 1-14 characters. See <http://www.dns-sd.org/ServiceTypes.html>
Fri Feb  5 22:12:58 unknown mDNSResponder[18] <Error>: D2DBrowseListRetain: _unityiphoneremote._tcp.local. PTR refcount now 2
Fri Feb  5 22:12:58 unknown mDNSResponder[18] <Error>: Bad service type in ._unityiphoneremote._tcp.local. Application protocol name must be underscore plus 1-14 characters. See <http://www.dns-sd.org/ServiceTypes.html>
Fri Feb  5 22:12:58 unknown mDNSResponder[18] <Error>: D2DBrowseListRelease: _unityiphoneremote._tcp.local. PTR refcount now 1

Anyone know whats going on here?

Thanks,
Izzy.

259839--9338--$unityremote_failed_to_connect_122.png

Anyone? :frowning:

Does it have something to do with this line:

Bad service type in ._unityiphoneremote._tcp.local. Application protocol name must be underscore plus 1-14 characters. See <http://www.dns-sd.org/ServiceTypes.html>

Is it because there’s a Period “.” in front of “_unityiphoneremote._tcp.local”?

I’m not sure if that’s THE problem, but it’s definitely a nice catch. Please use the bug reporter and send it in!

But I doubt that’s failing. I would guess the problem is more here:

I’d make sure you have both Mac and the phone on wireless (on the same wireless) and that your firewalls are off.

bliprob,

Thanks. I’ve Reported the Problem (from the Help menu in Unity iPhone)

I still think it might be the HTTP protocol that UnityRemote is registering and using. :frowning:

Thanks,
Izzy.

Darn…

Its the software Firewall that was doing it! :frowning:

Once I changed it to Allow Unity iPhone, it works!

Thanks,
Izzy.