this issue is Occurs when we try to connect sfs server on android device .
in this function:
sfs.AddLogListener(LogLevel.ERROR, OnErrorMessage);
public void OnErrorMessage(BaseEvent evt)
ErrorMessage = " [TCPSocketLayer] Connection error:NO such host is known at "
i am using unity5.5.3 .
Plateform = Android
Note: working fine on webGl and editor.
Connecting failed !
Re: Connecting failed !
Hi,
keep in mind that when using an Android emulator the address of your computer as localhost becomes --> 10.0.2.2, instead of the usual 127.0.0.1
This is because the phone itself (via the emulator) becomes 127.0.0.1, but SmartFoxServer runs on your computer, not the emulator.
For more see this:
https://stackoverflow.com/questions/218 ... -localhost
cheers
keep in mind that when using an Android emulator the address of your computer as localhost becomes --> 10.0.2.2, instead of the usual 127.0.0.1
This is because the phone itself (via the emulator) becomes 127.0.0.1, but SmartFoxServer runs on your computer, not the emulator.
For more see this:
https://stackoverflow.com/questions/218 ... -localhost
cheers
Who is online
Users browsing this forum: No registered users and 93 guests