我试图在Openshift中使用JBoss EAP连接套接字。我收到此错误:
ERROR (ServerService Thread Pool -- 70) Ping to [address.of.destination:10443] failed: Permission denied: java.net.SocketException: Permission denied
at sun.nio.ch.Net.connect0(Native Method) [rt.jar:1.7.0_51]
at sun.nio.ch.Net.connect(Net.java:465) [rt.jar:1.7.0_51]
at sun.nio.ch.Net.connect(Net.java:457) [rt.jar:1.7.0_51]
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:670) [rt.jar:1.7.0_51]
我认为原因是因为Openshift阻止了对端口的访问。
我也是在这些条件下:
这种情况有解决办法吗?
答案 0 :(得分:0)
可以绑定到内部IP,端口范围介于15000和35530 https://www.openshift.com/kb/kb-e1038-i-cant-bind-to-a-port之间。另请阅读http://blog-judcon.rhcloud.com/?p=97