How to Bind Remote Object particular WAN IP Address

S

sherazi

On my Remote Server there are two Ethernet Adapter attached. one
Adapter configure with LAN Network and Second with WAN Network I want
to bind my remote object with particular WAN IP address .How I can set
WAN IP address to which remote object can be bind.

Following is the code for binding the object

systemProperties.put("java.rmi.server.hostname", WANIP);
Registry reg =
LocateRegistry.createRegistry(Constants.RMI_REGISTRY_PORT);
reg.rebind("My Object", remoteobject);

here is problem my object bind with LAN IP address. When I have set
the WAN IP in System Properties.


Thanks in Advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top