[99670] in RedHat Linux List
RE: unbinding a port?
daemon@ATHENA.MIT.EDU (Charles Galpin)
Mon Nov 16 14:22:34 1998
Date: Mon, 16 Nov 1998 14:22:13 -0500
From: Charles Galpin <cgalpin@lighthouse-software.com>
To: Justin Kuntz <redhat-list@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
I have found that if you wait a few minutes the port will be freed. make
absolutly sure nothing that was using that port is still running though
(like your server).
charles
===== Original Message from Justin Kuntz <redhat-list@redhat.com> at
11/15/98 6:55 pm
>I am trying to write a Remote Method Invocation (RMI) program using Linux
>as the Java server. To do this, one binds a TCP port using the rmiregistry
>program that is included with the JDK (v1.1.7 from blackdown.org). Anyway,
>I seem to have killed by rmiregistry prematurely, and now the port cannot
>be reused.
>
>In other words, even though I check that no more rmiregistry instances are
>running in the system with "ps ax | grep rmi", when I re-execute
>rmiregistry I get an error like: "cannot bind to TCP port 1099 - port in
>use".
>
>This is not just a problem I have had with rmiregistry. I've also seen
>Apache HTTPD do it, and the only way I know how to fix the problem is by
>rebooting Linux (RHL v5.1). I am sure this is more evidence of my lack of
>understanding as a Linux user than a fault with the OS.
>
>Can someone please tell me how to force a port unbind WITHOUT restarting
>the server? IE: "force Linux to unbind port 1099 so that it can be
>reused".
>
>Thanks,
>
>Justin
-- Charles Galpin <cgalpin@lighthouse-software.com>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.