I have JBoss 4.0.5 installed in a LAN, but I want to access this JBoss out of the LAN, the server is behind a router with the ports open. The extra arguments has been added to the run script. This arguments are -Djava.rmi.server.hostname with the external IP of the server and -Djava.rmi.server.useLocalHostname=false so that it uses the IP in the hostname argument. By doing this the server works.
However, the problem is the next. The external IP of the router I'm using to the server is Dynamic. So, every time the router change its external IP my server can't be connected. I have created a Dynamic DNS to solve the problem but I cannot make it work. How to make it work?
There is also another problem. When I put this arguments, the server can't be connected from the inside of the LAN. What can I do to get the server working as I want? Please, I'd like a faster answer because I'm very interested in that question. Thanks.