I have tried
Connectionclient.ReceiveTimeout = 10000; Connectionclient.Connect("127.0.0.1", 10072); if TcpListener is running, it works fine. but if the TcpListener is not running, my tcpclient will freeze itself like 1 sec before catch the exception. meanwhile, my connecting message is also being freeze.
I'm just trying to make a Login screen like all online games have.
So, how can I solve this problem, or what should I go read to find the solution my self.