Connection refused #81
BenjaminBako
started this conversation in
Issues
Replies: 1 comment
-
Hi Benjamin, I'm sorry for the late reply, I had a little time off. If AR Companion doesn't show the IP addresses, it means it doesn't see the available addresses that can be discovered on the network. A few users a long time ago had a similar issue, and were able to fix it with Static IP configuration in the phone's settings:
As an alternative connection method, a wired connection option is available:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im on a Mac using unity 2022.3.7f1, arfoundation 5.0.7, URP. Just bought the AR foundation remote support v2. Followed the instructions in the documentation. Its strange because the builded, installed (local network access granted) app is not showing the ip adress, but I found the log in Xcode and that is matches with the local ip what I found in the iPhone-s devices settings. So I'm sure I'm trying to connect on the correct address. When I launch any scene (I tried some sample scenes also, each time a I built a new version of the companion app just to make sure), I get this error in editor when I hit the play button in editor while the companion app is running on the phone:
Client Recv Exception: System.Exception: Connection to 192.168.0.22 failed with exception: System.AggregateException: One or more errors occurred. (Connection refused) ---> System.Net.Sockets.SocketException: Connection refused
at System.Net.Sockets.SocketAsyncResult.CheckIfThrowDelayedException () [0x00014] in :0
at System.Net.Sockets.Socket.EndConnect (System.IAsyncResult asyncResult) [0x0002c] in :0
at System.Net.Sockets.TcpClient.EndConnect (System.IAsyncResult asyncResult) [0x0000c] in :0
at System.Threading.Tasks.TaskFactory
1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func
2[T,TResult] endFunction, System.Action1[T] endAction, System.Threading.Tasks.Task
1[TResult] promise, System.Boolean requiresSynchronization) [0x00019] in <16d1a1e3fafa4d23a275526c945e1b62>:0--- End of inner exception stack trace ---
---> (Inner Exception #0) System.Net.Sockets.SocketException (0x80004005): Connection refused
at System.Net.Sockets.SocketAsyncResult.CheckIfThrowDelayedException () [0x00014] in :0
at System.Net.Sockets.Socket.EndConnect (System.IAsyncResult asyncResult) [0x0002c] in :0
at System.Net.Sockets.TcpClient.EndConnect (System.IAsyncResult asyncResult) [0x0000c] in :0
at System.Threading.Tasks.TaskFactory
1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func
2[T,TResult] endFunction, System.Action1[T] endAction, System.Threading.Tasks.Task
1[TResult] promise, System.Boolean requiresSynchronization) [0x00019] in <16d1a1e3fafa4d23a275526c945e1b62>:0 <---at Telepathy.Client.ReceiveThreadFunction (System.String ip, System.Int32 port) [0x00060] in ./Library/PackageCache/com.kyrylokuzyk.arfoundationremote@21688261dd54/Runtime/Connection/Telepathy/Client.cs:67
UnityEngine.Debug:LogError (object)
ARFoundationRemote.Runtime.TelepathyConnection/<>c:b__12_1 (string) (at ./Library/PackageCache/com.kyrylokuzyk.arfoundationremote@21688261dd54/Runtime/Connection/TelepathyConnection.cs:64)
Telepathy.Client:ReceiveThreadFunction (string,int) (at ./Library/PackageCache/com.kyrylokuzyk.arfoundationremote@21688261dd54/Runtime/Connection/Telepathy/Client.cs:111)
Telepathy.Client/<>c__DisplayClass11_0:b__0 () (at ./Library/PackageCache/com.kyrylokuzyk.arfoundationremote@21688261dd54/Runtime/Connection/Telepathy/Client.cs:175)
System.Threading.ThreadHelper:ThreadStart ()
I guess it's able to connect on the ip address but somehow the connection is refused. What can I do to solve the issue?
Beta Was this translation helpful? Give feedback.
All reactions