Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Cant establish TCP connections from server

Posted on 2007-11-19
10
Medium Priority
?
563 Views
Last Modified: 2013-11-13
Hi
We are experiencing a tcp connection problem on our server lately. This means that we cant establish a tcp connection from the server to any host/service untill the server has been restarted.
The server is a servicing as a webserver with Apache/2.0.59 (Win32) PHP/4.4.6.
Then suddendly for some reason, after some days the server goes into an "error state" where it isnt possible to establish TCP connections from the server, until a restart.
I then checked if was even possible to telnet to the database or any other remote TCP service. Telnet returned error:" Connecting to <servername/ip> ...Could not open connection to the host, on port <TCP service number>: connect failed"
After the restart, the server works fine again for a couple of days.
I have checked our firewall, as this is between the webserver and the database. No errors
Windows event log doesnt give me any errors either.
As I cant establish a tcp connection from command prompt, I assume this is OS and not Apache related.
Have any been experiencing similar, or have any suggestions how to solve this?
Kind regards
Christian
0
Comment
Question by:Scanbox
10 Comments
 
LVL 9

Expert Comment

by:binary_1001010
ID: 20312056
>As I cant establish a tcp connection from command prompt, I assume this is OS and not Apache related.

not correct.  by default for example , you cant telnet to  a server using port 80/443( because no service is using these ports). but if the server is running IIS or apache, then yes, you will able to telnet to 80/443.

in your case, i dont think it is firewall related. it could be apache causing intermittent problem.
0
 

Author Comment

by:Scanbox
ID: 20312506
Hi binary
Thanks for your answer. I am aware that there must be a service running, to be able to connect to the service :)
Last time the server was in that error state, i tried establishing an outgoing telnet connection to our mailserver on TCP25, which gave the same result. You are propertly right that its Apache that is causing this problem, but why is it preventing the OS to establish any TCP connections at all? Could it be something with tcp sockets in windows, or any other TCP/IP related service?
Im a bit lost here..
0
 
LVL 9

Expert Comment

by:binary_1001010
ID: 20313352
what OS aer you using? what is the name of the firewall?  when you said "but why is it preventing the OS to establish any TCP connections at all"  do u mean non of the tcp ports work? can u list out the port numbers?

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:jpwillyjr
ID: 20316814
are utilizing TCP Offload?  I think SP2 may automatically enable tcp or 'chimney' offload which can cause alot of issues. If you are try disabling it,

Netsh int ip set chimney DISABLED  
should do it from a cmd prompt without a reboot.
0
 

Author Comment

by:Scanbox
ID: 20326515
OS is windows server 2003 SP2
Firewall is Juniper SSG-550
As I dig deeper into this problem, my focus is more and more on the TCP/IP protocol, stack or other network related service on my webserver.
The most annoying is that I dont have any error events, logs or other to diagnose.
Thats why its do damn hard to troubleshoot.
Anyone know of a TCP/IP diagnostic tools?
0
 

Author Comment

by:Scanbox
ID: 20338404
Anyone with a thought about this?
0
 
LVL 9

Expert Comment

by:binary_1001010
ID: 20346252
trying downloading  "ip-tools."
0
 

Author Comment

by:Scanbox
ID: 20364711
I finaly found the solution.
On the server, I had a program creating a socket to 8 different websites whitin a time window.
This program was trying to connect to a SSL website through port 80, which of course dont work.
This somehow used up all sockets on the server, and had the server crashing after some time.
Funny thing why I couldnt see any errors in windows event log, on the NIC or anywere else.
I fixed the program to connect to the right port, and this solved the problem :)
Thanks for all your suggestions and help
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 20532226
PAQed with points refunded (250)

Computer101
EE Admin
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question