I see where you’re going with this, but… it’s not safe to assume that everything is local on one machine. Other applications sending messages to SC may be on other machines and not have access to the port file. Those other applications might even be on tablets or phones, where there are limitations on file sharing, and there is no easy way to customize the apps to grab a port number from somewhere.
TouchOSC, for instance, does not have a way to detect a specific ping message to identify the port number automatically. It assumes that you know the port number… which you don’t, if it’s being randomized at launch.
Thanks @Koltes, this (disabling Hyper-V) fixed the problem for me. This was a machine with a SC setup that used to work, and at some point (after Windows Updates, or maybe after installing a newer version of SC) it stopped working.
None of the solutions above have worked for me.
Tried removing firewals,antivirus,vpns
resinstalling sc, downgrading sc
running sclang on powershell on different ports
making sure there are no conflicts on the ports that sclang runs
making sure i dont have any hyper v related stuff…
I am so defeated, everything was working well for months, then never again.
Anyone having this issue with SC:
"
No networking: unable to bind udp socket
compiling class library…
…
ERROR: Primitive ‘_GetLangPort’ failed.
Failed.
…
^^ The preceding error dump is for ERROR: Primitive ‘_GetLangPort’ failed.
Failed.
RECEIVER: NetAddr
"