Skip to content

questions on how to use mpyc on different host #101

Closed

Description

@shiina3301

I use --config and modify the host name in ini file like party3-0.ini to use mpyc on different host, but it seems to have some error like pid over the limit, what do not appear on local parties using -M.
I want to know how can I run mpyc on different host?

Activity

  1. lschoe commented on Nov 27, 2024

    @lschoe
    Owner

    To run MPyC with remote hosts it's maybe easier to use the command line option -P to set the hostname and port for each of your parties, in combination with the command line option -I to assign a unique index for each party.

    Check out the example for two parties for the helloworld.py demo: https://mpyc.readthedocs.io/en/latest/demos.html#helloworld-py

    If you want to do this with ini files, replacing localhost with remote hostnames or IP addresses in the lines host = localhost in the .ini files should work.

    By leaving host = empty for exactly one of the parties in the .ini file, the pid will be set to the index of that party.
    Alternatively, you can set host for all parties in the .ini files and use the command line option -I i to set pid = i.

  2. Repository owner locked and limited conversation to collaborators on Nov 29, 2024
  3. converted this issue into a discussion #102 on Nov 29, 2024
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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions