- Home /
Unity Client SocketException: Connection refused,Unity Client SocketException: Connection refused + Crashes
Hi,
When I try to run an application on Unity, I get an error (SocketException: Connection refused) on the line: using (TcpClient tcpClient = new TcpClient("127.0.0.1", port_number))
Then, I tried to look for all opened port in network utility on Mac, and when I telnet 127.0.0.1 port_number on terminal, it was able to connect, but when I try to run the code on Unity, it crashes now instead of throwing that error mentioned in the title.
I don't think it is a code issue because my teammates are able to run the same program successfully on their machine.
I am using Unity 2019.2.5f1, MacOS Mojave version 10.14.6, and I disabled my firewalls and uninstalled all my VPNs.
I am looking for possible cause of my issue here and what to research to debug this.
Thank you.
Your answer
Follow this Question
Related Questions
Unity tcp_client only working on localhost 1 Answer
TCP client constructor error in Universal Windows Platform build 0 Answers
Problems with TLS handshake 0 Answers
Problems with tcpclient 0 Answers