Jboss only works on localhost:8080 ,but doesnt reply when called by ip

后端 未结 4 1671
北海茫月
北海茫月 2020-12-15 20:40

I installed JBoss 5.0.1 and ran it , but when i called it from the same computer on localhost:8080 it works but when i call it from other computer it doesnt work at all usin

4条回答
  •  没有蜡笔的小新
    2020-12-15 21:04

    If you want JBoss to communicate on all IP addresses that are on the machine, then you can start it with the -b option passing 0.0.0.0 as the ip address, e.g.

    -b 0.0.0.0
    

    Probably better is binding to the specific IP address that you want to. You can do this again by using the -b option, but passing the IP address you want to bind to or the DNS name you want to bind to, e.g.

    -b 192.168.0.1
    

    or -b jbosshostname

    You can put the -b option in the run.bat file so it is used automatically if you are running JBoss as a service - assuming Windows. If you are not using Windows, you can place this option in the run.sh file.

    If you do not wish to put the -b option in the run.sh/bat file, you can enter it at the command line:

    run.bat -b 192.168.0.1
    

提交回复
热议问题