java.net.SocketException: Operation not permitted

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by Girsh
, 2 years ago
Address family not supported by protocol family: no further information
java.net.SocketException: Operation not permitted
at sun.nio.ch.DatagramChannelImpl.send0(Native Method)
at sun.nio.ch.DatagramChannelImpl.sendFromNativeBuffer(DatagramChannelImpl.java:521)
at sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:498)
at sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:462)
at org.itxtech.nemisys.raknet.server.UDPServerSocket.writePacket(UDPServerSocket.java:87)
at org.itxtech.nemisys.raknet.server.UDPServerSocket.writePacket(UDPServerSocket.java:78)
at org.itxtech.nemisys.raknet.server.SessionManager.sendPacket(SessionManager.java:197)
at org.itxtech.nemisys.raknet.server.Session.sendPacket(Session.java:189)
at org.itxtech.nemisys.raknet.server.Session.update(Session.java:118)
at org.itxtech.nemisys.raknet.server.SessionManager.tick(SessionManager.java:107)
at org.itxtech.nemisys.raknet.server.SessionManager.tickProcessor(SessionManager.java:100)
at org.itxtech.nemisys.raknet.server.SessionManager.run(SessionManager.java:69)
at org.itxtech.nemisys.raknet.server.SessionManager.(SessionManager.java:57)
at org.itxtech.nemisys.raknet.server.RakNetServer.run(RakNetServer.java:101)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 2 years ago
42 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.