Troubles connecting behind a router

I'm using JBoss connecting with RMI. I'm trying to connect from the outiside of my LAN but I cannot. I have configured NAT to use Jboss but the connection from the outside is impossible. I have passed this arguments to my JBoss

-Djava.rmi.server.hostname = "host"

-Djava.rmi.server.useLocalHostname="false"

At the first test host was a IP Address and it worked but the outside IP is dynamic so I created a Dynamic DNS. I have tried to put the DynDNS address but it doesn't work. What can I do? How to get this working? Thank you.

[557 byte] By [sirynxa] at [2007-11-27 10:18:15]
# 1

Doesn't JBoss use RMI/IIOP? in which case none of this stuff works - it's for RMI/JRMP.

ejpa at 2007-7-28 15:56:24 > top of Java-index,Core,Core APIs...
# 2

I don't understand you. Yes it uses RMI/IIOP. But my question is: Is there a way so that I can connect with my server from the outside? Please, some help will be welcomed and I'm very interested in that question. Anyway, thanks for your message.

sirynxa at 2007-7-28 15:56:24 > top of Java-index,Core,Core APIs...
# 3

Those system properties only work for RMI/JRMP. RMI/IIOP as implemented in the JDK doesn't support being behind a router as far as I know, but you aren't using the JDK implementation, you're using the JBoss implementation, so it's really a question for JBoss.

ejpa at 2007-7-28 15:56:24 > top of Java-index,Core,Core APIs...
# 4

I don't know if it matters to you, but the parameters name should be: java.rmi.server.useLocalHostName (with capital N)

Lior_Levya at 2007-7-28 15:56:24 > top of Java-index,Core,Core APIs...
# 5

This is both incorrect and irrelevant. Please don't post misinformation here. The OP was already using the correct spelling. See http://java.sun.com/j2se/1.5.0/docs/guide/rmi/javarmiproperties.html .

ejpa at 2007-7-28 15:56:24 > top of Java-index,Core,Core APIs...
# 6

Thank you for the information it is very useful. But the real problem is that I wanted to connect to a router configured with a dynamic IP, how to solve this problem? Is it worth to make a Dyn DNS? Thank you again.

sirynxa at 2007-7-28 15:56:24 > top of Java-index,Core,Core APIs...
# 7

You will have to ask JBoss.

ejpa at 2007-7-28 15:56:24 > top of Java-index,Core,Core APIs...
# 8

I know you cannot answer to this problem but the question I have now it is possible that can be answered this. I have found something about HTTP tunnelling when using RMI. Is it possible that this option was the solution to my problem? If the answer is yes, I'd like to know some things.

Firstly, where can I find the cgi script? Does it comes with the JDK?

Secondly, How to configure the web server to handle this option?

Thirdly, Is it necessary to change anything in my application to make it work? As far as I know the client connect in the same way so I understand that the client must try to connect to the RMI port, in my case port 1099, is that correct?

Please, I need a quickly answer. Anyway, thank you for your help.

sirynxa at 2007-7-28 15:56:24 > top of Java-index,Core,Core APIs...
# 9

RMI/IIOP doesn't support HTTP tunnelling so the answer to everything here is again 'no'. Once again you will have to ask JBoss.

ejpa at 2007-7-28 15:56:24 > top of Java-index,Core,Core APIs...
# 10

What a pity! Anyway, thank you for replying. I have already asked to JBoss forums but after some time nobody has posted anything yet. Thank you again. See you.

sirynxa at 2007-7-28 15:56:24 > top of Java-index,Core,Core APIs...