Skip to main content
New Participant
August 25, 2020

Open socket permission denied in Unity project with Android native plugin C library

I am planing to use some network connections in a Unity project I plan developing for the Oculus quest. I created a simple project to get network communication working. The communication library is a native C library which is loaded using DllImport. The native C library access the network stack socket API. The project works fine on Windows however when I run it on the Quest I get the error:
OS socket() failure, error 0XD: Permission denied

Is there anything I have to do to set the right permissions? How to I get permissions to access the network stack socket API.

1 reply

Manatee12Author
New Participant
August 26, 2020
Problem solved. Forgot to add one of the permissions in the manifest file