Question by
bhayward_incrowd · Jan 14, 2016 at 10:50 AM ·
networkingbuildconnectionthreadstcp
Unity TCP Listener not working when built
I have written a TCP server into my game which clients can connect to perfectly when the game is run in the editor. When I build the game however, clients cannot connect to it.
Further, when I use telnet on the built game/server, it tells me it cannot connect as the connection was refused. When I do the same when the game is run in the editor, telnet connects fine.
Is there something I need to do to enable TCP communication?
Looking at the console in the built version, everything works exactly as it should do - it just doesn't seem to hear any clients connecting, despite the TCPListener being set to AcceptTcpClient.
Comment