Networking Forums

Networking Forums > Computer Networking > Linux Networking > Bind succeeds for a used port

Reply
Thread Tools Display Modes

Bind succeeds for a used port

 
 
prasad
Guest
Posts: n/a

 
      04-15-2004, 09:44 AM
Hi

We are seeing that a socket which is already ESTABLISHED and the
local addressort and remote address: port are the same.

i) How is this possible ?
ii)Another process tried to listen on the same port on which
connection was
already Established , and seems to be successful

Linux Kernel version is :: 2.2.14-6.1.1

Below please find the netstat -a on port 4419


tcp 0 0 0.0.0.0:4419 0.0.0.0:*
LISTEN
tcp 0 0 10.202.112.9:4419 10.202.112.9:4419
ESTABLISHED


Can anyone please explain this?

Thanks
Prasad
 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      04-16-2004, 04:00 AM
On 15 Apr 2004 02:44:38 -0700, prasad <(E-Mail Removed)> wrote:
> Hi
>
> We are seeing that a socket which is already ESTABLISHED and the
> local addressort and remote address: port are the same.
>
> i) How is this possible ?
> ii)Another process tried to listen on the same port on which
> connection was
> already Established , and seems to be successful
>
> Linux Kernel version is :: 2.2.14-6.1.1
>
> Below please find the netstat -a on port 4419
>
>
> tcp 0 0 0.0.0.0:4419 0.0.0.0:*
> LISTEN
> tcp 0 0 10.202.112.9:4419 10.202.112.9:4419
> ESTABLISHED
>
>
> Can anyone please explain this?


I don't understand your questions. You show what appears to be ONE daemon
[or (x)inetd] bound to (listening on) a port. And you show one connection
established to that port. The "Foreign" port usually has nothing to do
with the "Local" port, even if on the same machine.

So what you have here is one thing bound to port 4419 listening for any
connection. And you have one client connected to that port (possibly
with a forked copy of whatever is listening for new connections). The
port you are connecting to that listening port is a non-issue. Show us
the second connection that can listen in on, or conflict with the
established connection (same Local and Foreign IPs and ports).

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
David
Guest
Posts: n/a

 
      04-16-2004, 04:21 AM
prasad wrote:
> Hi
>
> We are seeing that a socket which is already ESTABLISHED and the
> local addressort and remote address: port are the same.
>
> i) How is this possible ?
> ii)Another process tried to listen on the same port on which
> connection was
> already Established , and seems to be successful
>
> Linux Kernel version is :: 2.2.14-6.1.1
>
> Below please find the netstat -a on port 4419
>
>
> tcp 0 0 0.0.0.0:4419 0.0.0.0:*
> LISTEN
> tcp 0 0 10.202.112.9:4419 10.202.112.9:4419
> ESTABLISHED
>
>
> Can anyone please explain this?


Take a look at the output from "netstat -tupan" and see what it
tells you.

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.26 SMP i686 (GCC) 3.3.3
Uptime: 1 day, 1:04, 1 user, load average: 0.09, 0.06, 0.10
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Bind to port 22 on 0.0.0.0 failed: Address already in use Pascal Hambourg Linux Networking 2 03-01-2010 12:00 PM
can't bind to port: 80 Permission denied Ciur Eugen Linux Networking 9 04-02-2009 12:25 PM
Execute second command only if first fails/succeeds? Matthew Lincoln Linux Networking 3 06-30-2008 01:10 AM
Can not bind() on a specific port Rogier Mulder Linux Networking 1 10-06-2004 08:37 PM
Cannot bind to http port 8080 Carter Brey Linux Networking 2 12-10-2003 05:25 AM



1 2 3 4 5 6 7 8 9 10 11