Binding Specific IP in Jboss Server

Hi,

By Default Jboss gets a binding with loopback/Floating  IP Address (127.0.0.1). This cause a problem when we are developing web services on Jboss and try to access the service or access the deployed application from different machine.

There is a simple solution for the same.

If you are using Windows machine. Follow the below Steps:

1. Go to Jboss Home
2. Navigate to “bin” directory
3. Edit the run.bat and add this entry “-Djboss.bind.address=10.10.10.10”
4. Start the server

On Linux/Unix Machines:
1. Go to Jboss Home
2. Navigate to “bin” directory
3. Edit the run.sh and add this entry “-b 10.10.10.10”

Hope this helps.


Thanks
R Vashi

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s