I
I
Ilya2019-01-06 10:18:09
C++ / C#
Ilya, 2019-01-06 10:18:09

websocket. Unity client hangs while connecting to the server. Why?

Recently started working with Websocket-Sharp, I created client and server applications for testing on the same machine. Everything works fine using localhost as the local address. Then I tried to start the server and the client from different machines. The server itself works correctly: all the pages are in place, as well as their functionality. But as soon as I try to launch the game from Unity, it freezes - it can't connect. Any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Atlllantis, 2019-01-06
@Atlllantis

Is the problem that it cannot connect or that the unit hangs?
In order not to freeze, everything connected with the network must be done in a separate thread.
And why is not connected - see the log, so I can not say anything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question