Skip to content

QVM port interferes with Mac Airplay receiver. #1653

Description

@AJnsm

Pre-Report Checklist

  • I am running the latest versions of pyQuil and the Forest SDK
  • I checked to make sure that this bug has not already been reported

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛An issue that needs fixing.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions