Skip to content

questions on how to use mpyc on different host #102

Answered by lschoe
shiina3301 asked this question in Q&A
Discussion options

You must be logged in to vote

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 fil…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lschoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #101 on November 29, 2024 12:20.