I got the following code:
TcpClient client = new TcpClient("server", 5555);
The server immediately sends back a ICMP port-unreachable but the program is taking about 30 seconds until it times out with a 10054 Error.
I turned the firewall off and wireshark is also capturing the packet, so it is not a windows-configuration problem.
How can i get the TcpClient to recognize the port-unreachable packet?