Re: Problem with RMI Creating an extra port

Peter Jones <[email protected]> Tue, 30 Sep 2008 17:36:17 -0400
Newsgroups gmane.comp.java.sun.rmi
Message-ID <20080930213617.GB26025@east>
On Mon, Sep 29, 2008 at 07:41:23AM +1000, Greg Luck wrote:
> It is possible it is a client connection. The " //Sep 26 21:30:36
> Greg-Lucks-Laptop Firewall[57]: java is listening from ::ffff:
> 127.0.0.1:57915 uid = 501 proto=6" talked about it listening, which
> made me think it was a server connection.

Fair enough-- I don't know where that message came from.

> The user has now reported that opening up both the RMI Registry port
> and the Remote Object Port in in ehcache RMI replication did the
> trick.
> 
> Can you tell me a netstat command that will clearly show that the
> extra port is a client connection? That will fully resolve this for
> me.

I would suggest "netstat -an" (-a to show listening sockets and -n
just to avoid possible reverse-DNS complication), looking for the port
number(s) of interest in the "Local Address" column.  If a port shows
up on a line with "LISTEN" in the "State" column, there is a listening
socket for it.

-- Peter

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html