Machine is RHEL 5.3 (kernel 2.6.18).

Some times I notice in netstat that my application has connection, when Local Address and Foreign Address are same.

How it's possible?

Update 1

I catch it on netstat:

tcp        0      0                ESTABLISHED

Update 2

Here same problem reported by someone else too.

  • What is the context of this question? Which application are you talking about? – user3914 Feb 9 '11 at 6:10
  • This is application I work on. But the question is general - I don't see how "physically" such behavior is possible. – dimba Feb 9 '11 at 6:14
  • Found an answer on stackoverflow: stackoverflow.com/questions/4949858/… – JimB Feb 10 '11 at 14:49

That just means that an application is connecting to another application on your machine. An application talking to a database for example.

  • Do you mean application in process of connection or it already connected? – dimba Feb 9 '11 at 6:13
  • 1
    That depends on the state of the connection. What does the state show? – mrdenny Feb 9 '11 at 6:15
  • Actually this is very very rare problem and I don't remember actual state. I basically don't understand how in TCP connection it is possible. I hope, when I'll understand it, I can find my problem – dimba Feb 9 '11 at 6:36
  • @Dima, If two applications which are installed on your computer, such as a web server and a database server, need to talk to each other they use the same technique to do so if the applications are installed on the same machine, or if they are on different machines. The listening service, the database is this case, listens on a TCP socket for connections. It listens on the normal IP, as well as localhost ( for connections. The web server connects to that TCP port so that it can talk to the database. – mrdenny Feb 9 '11 at 6:42
  • You're describing standard client/server connection. The problem I experience is that netstat tells that connection has exactly same local and remote address. – dimba Feb 9 '11 at 6:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.