Mac OS X - Adding a loopback alias

I do a lot of local web development on my MacBook Pro. Frequently I had multiple tiers of servers running - a Jetty instance running the web tier and a JBoss/EJB server doing the business tier behind it. The problem is JBoss opens up so many ports on a particular network adapter and trying to get JBoss and Jetty to share a single IP is a nightmare. So the easier way is to just create a new IP or alias your localhost (127.0.0.1) into something like 127.0.0.2. When you start up Jetty, you pass in the binding IP of .2 and then JBoss and Jetty place nice with each other. ...

February 4, 2011 · 2 min · Aaron