开发者

How to start JBoss AS with external IP NAT

开发者 https://www.devze.com 2023-01-27 06:44 出处:网络
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

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

精彩评论

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