开发者

Running tomcat from another connected pc

I want to test some pages on several machine.

I have tomcat 开发者_JS百科running on one pc lets say PC1 and several pc are connected to PC1. I want other pc to load the one page from PC1. I have tried some alternatives but it is not working

Does anyone know about this??

Thanks


Troubleshooting From PCX try pinging PC 1: ping PC1 If that succeeds try doing telnet to Tomcat port (default 8080): telnet PC1 8080 That's probably where it will fail, refusing to connect to 8080.

Alternative 1 You have a Firewall blocking the the other PC to access Tomcat port (default 8080).

Alternative 2 Tomcat is binded to localhost only, and you can't access it from another host.

Look for the tomcat/conf/server.xml file and look for some text like:

<Connector 
    port="8080" 
    protocol="HTTP/1.1" 
    address="127.0.0.1"
    ...

If you find the address attribute, remove it and it should bind to every ip address.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜