Permission denied on ipv6 Socket in Java

梦想的初衷 提交于 2019-12-11 04:23:36

问题


I have a strange problem on ipv6 connection.

I write down a simple client server in Java, it works perfectly in ipv4 but when I try to use it with an Ipv6 address I receive a "java.net.SocketException: Permission denied".

If I try to run on the same machine client and server it works with ipv4 and ipv6 as well so i think that is a O.S. problem.

Some informations:

Ping6 works between machines Iptables is stopped O.s. is RedHat 6.2

Any ideas? Thanks

Antonio


回答1:


I found the problem. There are two firewalls running as default on RHEL. I simply shutted down the IPv6 iptables.

service ip6tables stop



来源:https://stackoverflow.com/questions/11257901/permission-denied-on-ipv6-socket-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!