简体   繁体   中英

Permission denied on ipv6 Socket in Java

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 OS problem.

Some informations:

Ping6 works between machines Iptables is stopped Os is RedHat 6.2

Any ideas? Thanks

Antonio

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

service ip6tables stop

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM