Windows Server 2012 R2 can’t establish outgoing TCP connections

tcptcpipwindows-server-2012-r2

I've got a very weird error in a server. It is a Windows Server 2012 R2 Standard Domain Controller (primary) running in VMware ESXi 6.0 U2. It has DNS, DHCP and some file shares. The error is that it can't establish any outgoing TCP connection, neither local, lan or wan. Ping and UDP works fine (as it is DNS server, I see UDP DNS packets flowing in the firewall). Incoming connections works fine too. For example, if I do a telnet 127.0.0.1 3389 it doesn't anwser, I got the standard error message "Connecting To 127.0.0.1…Could not open connection to the host, on port 3389 : Connect failed", but I am connected to it through RDP.

For the record, no third-party anti-virus installed, I tested disabling the firewall, routes are normal, there are no signs of TCP port exhaustion (there are almost no connections above port 50000).

I don't know if its related, but I have a script which downloads a page daily, the command is powershell -ExecutionPolicy unrestricted -Command "(New-Object Net.WebClient).DownloadString(\"http://google.com\")" (with another url, obviously). When it runs, it gets a OutOfMemoryException, but the server is with 8 GB and only 2.9 GB in use.

Thanks in advance for all help provided.

Best Answer

Just for the case that someone runs into the same issue. I had the problem that incoming -> everything was possible (TCP/IP, PING) Outgoing, only ICMP(PING) was possible, but no socket connect. It helped me to uninstall the last installed updates...