RMI connection question

From: coder_1024 (coder_1024_at_hotmail.com)
Date: 11/30/03


Date: 30 Nov 2003 12:14:42 -0800

I'm developing a Java RMI client/server application.

On the server side, I create a registry on port X, then create my
object on port X and bind to the registry.

On the client side, I do a Naming.lookup call specifying the server
host and port X along with the object name. This gives me back the
object reference and everything works.

The problem occurs when I run my server behind a router. I setup
port-forwarding on my router to route port X to the machine running
the server.

Problem is, the registry is returning the IP of the server which isn't
valid on the other side of the router and the client is then unable to
connect to the object.

Is it possible to skip the object registry entirely and just connect
up to a specified host and port number from the client? I need some
way to, on the client side, get the server object without using the
registry, i.e. just tell it the host and port number and connect up
directly to the remote object. I think this would solve my router
problems...



Relevant Pages

  • Re: Unable to print to networked printer - get access denied messa
    ... Check the permissions on the server assuming the client has a true RPC ... How is the Standard TCP/IP port configured for the device? ...
    (microsoft.public.windowsxp.print_fax)
  • Re: interfaces lo:1 lo:2 lo:3? (for remote ssh tunnels)
    ... That's the problem tunneling (port forwarding) solves. ... >>can't get past the client firewall. ... > I don't understand why the server would be making the ... server initiates another connection to the client -- in this ...
    (Debian-User)
  • Re: Remote Connection Issue
    ... through port number 3389 and a workstation on the LAN through port number ... I understand that you want to allow a LAN client ... and you have configured server publishing rule ... > By default Terminal Server and Windows 2000 Terminal Services uses TCP ...
    (microsoft.public.windows.server.sbs)
  • RE: Syncing fax server with company web
    ... please backup the whole registry list first in case any unexpected. ... Files\Microsoft Integration\Windows Small Business Server 2003\Logs''. ... And then we should push the shared fax client application from server to ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: RealVNC
    ... Default listening port for RealVNC server that runs on the machine on which ... Then there is default Java listening port on port 5800 on the client machine ...
    (microsoft.public.windows.server.sbs)