waseemwk
waseemwk

Reputation: 1509

How to access JBOSS Restful web service using IP and Port

I created a test JBOSS web service and there is only one test method in it. I access this using http://localhost:8070/MyWebService/MyRESTApplication and it shows the result from the web service. I tried this in both Eclipse and Browser and it works.

But when i want to access this web service using IP address of my system then it shows ERROR message that Page cannot be displayed (in fact browser is not able to find this web service).

I want to access like this http://IPaddress:8070/MyWebService/MyRESTApplication what should i do so that i can access it using my IP from some computer

Upvotes: 5

Views: 1965

Answers (3)

Mukesh Kumar
Mukesh Kumar

Reputation: 661

Open your server setting in Eclipse and set Host name as your IP address or 0.0.0.0

Upvotes: 1

Jay Prall
Jay Prall

Reputation: 5465

On windows:

start run.bat -b 0.0.0.0

This will tell it to start and bind to all network interfaces. You can also replace 0.0.0.0 with your actual IP if you only want it to bind to that network interface.

I find it easier for debugging to have it come up on all network interfaces because this will work when you are running a virtual machine to debug something like Internet Explorer.

Upvotes: 2

alain.janinm
alain.janinm

Reputation: 20065

You have to start JBoss using :

./run.sh -b [your_IPaddress]

Upvotes: 2

Related Questions