Pre-Report Checklist
Issue Description
The QVM starts a server through port 5000, but this resulted in the error USOCKET:ADDRESS-IN-USE-ERROR on my MacBook.
How to Reproduce
Run qvm -S on a Mac with airplay receiver enabled.
Environment Context
Operating System: MacOS Ventura 13.2.1 (22D68)
Python Version (python -V): Python 3.11.4
Quilc Version (quilc --version): 1.23.0 [e6c0939]
QVM Version (qvm --version): 1.17.1 [cf3f91f]
Solution
Running lsof -i -P -n | grep LISTEN shows that there is a ControlCenter process using port 5000. This thread seems to indicate that it is the airplay receiver doing this. In system setting, under "Airdrop & Handoff", you can disable Airplay Receiver. This frees the port and now qvm -S runs as expected.
It might be a good idea to add this to the docs, as Airplay Receiver seems to be enabled by default on MacOS.
Pre-Report Checklist
Issue Description
The QVM starts a server through port 5000, but this resulted in the error
USOCKET:ADDRESS-IN-USE-ERRORon my MacBook.How to Reproduce
Run
qvm -Son a Mac with airplay receiver enabled.Environment Context
Operating System: MacOS Ventura 13.2.1 (22D68)
Python Version (
python -V): Python 3.11.4Quilc Version (
quilc --version): 1.23.0 [e6c0939]QVM Version (
qvm --version): 1.17.1 [cf3f91f]Solution
Running
lsof -i -P -n | grep LISTENshows that there is aControlCenterprocess using port 5000. This thread seems to indicate that it is the airplay receiver doing this. In system setting, under "Airdrop & Handoff", you can disable Airplay Receiver. This frees the port and nowqvm -Sruns as expected.It might be a good idea to add this to the docs, as Airplay Receiver seems to be enabled by default on MacOS.