I have a scenario where an application requires multiple private IP addresses but does not require the resources of multiple instances.

In this case, I would like to run multiple jboss instances on the same EC2 instance without port mangling.

I've seem threads up to 2009 that stated this is not possible, checking if this has changed.

EDIT: I want to re-emphasize the private IP address is the question, not the elastic/public IP address. I am sorry I did not make this more specific.

  • 1
    Should be moved to serverfault – Alex Jasmin Oct 28 '10 at 20:12
  • I don't understand the negativity with the down votes. It's a valid question for stackoverflow. There are tons of ec2 related questions here. – Till Oct 30 '10 at 15:23
  • The specifics of the question is with regards to private IP addresses, not the Elastic/public IP addresses which has already been addressed. – user468164 Nov 1 '10 at 11:18

Unfortunately this is still the case. Quoting from the Amazon EC2 Elastic IP Addresses - FAQ:

Can an instance have more than one Elastic IP or Public IP?

Today, an instance can only have one Internet routable IP address. If an Elastic IP is mapped to an instance its existing Public IP address mapping is removed.

| improve this answer | |

Afaik, it's still not possible.

Some people run vserver or UML on an ec2 instance. You could set up various environments in there and then port forward from the host, etc. but that seems overcomplicated (IMHO).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.