Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BCP does not seem to leave VM #1518

Open
kylenahas opened this issue Jun 11, 2020 · 1 comment
Open

BCP does not seem to leave VM #1518

kylenahas opened this issue Jun 11, 2020 · 1 comment

Comments

@kylenahas
Copy link

kylenahas commented Jun 11, 2020

This may be a configuration issue on my end, but BCP does not seem to transfer data to sockets outside a Virtual Machine Guest.

I have not tested if it is able to send any messages across the network from host to another host, but I suspect not.

However I have tested:
MPF and MPF Monitor on same guest OS (Works - Expected)
MPF on guest, MPF Monitor on host (Does not work)
MPF on guest, MPF Monitor on host with port forwarding enabled (Does not work)
MPF on guest, MPF Monitor connecting to hardcoded IP of guest on host (Does not work)
Netcat from guest to host using IP of host's "Host network manager" (vboxnet0) (Works - Expected)

Furthermore, adding the following to config.yaml causes mpf to crash:

bcp:
    connections:
        local_display:
            host: 127.0.0.1
            port: 5050
            type: mpf.core.bcp.bcp_socket_client.BCPClientSocket
            required: True
            exit_on_close: True

    servers:
        url_localhost:
            ip: 127.0.0.1
            port: 5051
            type: mpf.core.bcp.bcp_socket_client.BCPClientSocket

With error: Runtime Error in MPF BCP Server: Failed to bind BCP Socket to 127.0.0.1 on port 5051.

@jabdoa2
Copy link
Collaborator

jabdoa2 commented Jun 12, 2020

The crash happens because you then bind the port twice. You can add "_overwrite: true" to overwrite the default config.

How does you VM setup look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants