开发者

How to start JBoss AS with external IP NAT

I want to start JBoss AS with external IP NAT address. I have hosted JBoss AS in an Amazon EC2 Instance. Amazon EC2 manages two categories of addresses: public and private ip address (also public and private dns). I have started JBoss AS binded to public DNS using run.sh -b public_dns but in the console showed the the JBoss AS is starting with private dns.

Also when trying to connect to the server with an external client that don't exis开发者_如何学JAVAts in Amazon EC2 Network, an exception is thrown as in https://stackoverflow.com/questions/4238567/cannt-connect-to-jboss-esb-hosted-in-amazon-ec2-machine and the server don't answer.


If your node only has a private IP address, then this would explain your issue. It is impossible to use a NAT translated IP address to connect to a node with only a private address, unless you start using NAT traversal and hole punching techniques.

This would be a complicated solution. The easy solution to make sure your node is assigned a public IP address. It should solve your problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜