Re: Controlling ports generated by the server for the clients 'real' connection.
Peter Jones <[email protected]> Sun, 16 Mar 2008 01:14:59 -0400
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <20080316051459.GA15772@east> |
On Sat, Mar 15, 2008 at 10:16:24PM +0000, Mark Salter wrote:
> I have an RMI server within a firewall protected network.
>
> I have requested my firewall administrator allow connection through to
> server port 1099, so that my remote clients can connect initially, the
> server then picks a port on which it asks the client to continue the
> conversation, and this is where my problem begins.
>
> This second port is not open on the firewall so further conversation is
> currently blocked.
>
> I have convinced the firewall administrator to open a range of ports
> within which I would like the conversation could continue, however I
> have completely failed to locate a mechanism by which I can control the
> 'second' port chosen by the server, to force it to be within my prepared
> range.
>
> My firewall admin will not open all high ports, not even for a single
> client ip address.
>
> Is there a solution anyone can share or am I barking up the wrong tree?
See:
http://archives.java.sun.com/cgi-bin/wa?A2=ind0302&L=rmi-users&P=3663
If your remote objects are in the same process as the registry, they
could be exported on the same port as the registry (like 1099).
If you want to pick from a range, there is some discussion here:
http://archives.java.sun.com/cgi-bin/wa?A2=ind0503&L=rmi-users&P=293
-- 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