Skip to main content
New Participant
September 22, 2023

Sending UDP Packages from installed .apk to pc in the same network

Hello everyone,
I am trying to send UDP packages from my Meta Quest 2 to my PC over the WiFi to which both of the devices are connected.

I have tried every solution I could, starting from adding the two lines in the Android Manifest about Internet Permission to disabling pc firewall.

My current architecture is pretty simple: I got a UDPSender script that sends a simple package to the IP address of my pc to the port 5000, and this script is running inside an apk installed on the quest; i then have a UDPReceiver that listens for received packages at the port 5000. Everything done using Unity (so, C# for scripting).

Using the Android Logcat of Unity linked to the Meta Quest I could see that everytime I try to send data, I get the error "Access Denied" with no more info. The Receiver on my PC, that in the meantime was running, didn't get anything and didn't throw any error.

I am driving crazy about trying to understand what I am doing wrong, if someone was able to solve a similar issue or managed to send udp packages from a Quest to an other device, please let me know!

This topic has been closed for replies.

1 reply

Phluxm
New Participant
April 30, 2025

Yeah, I'm having the same issue. Works fine between PCs on the network but the Quest just seems to block UDP and say "Access Denied". I've tried different port numbers, broadcasting openly, sending messages to specific IPs, running as bother server and client - just can't seem to get the Quest working using UDP.