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

cross network communication settings #200

Open
JiangDonglai98 opened this issue Mar 21, 2023 · 0 comments
Open

cross network communication settings #200

JiangDonglai98 opened this issue Mar 21, 2023 · 0 comments

Comments

@JiangDonglai98
Copy link

My question may be a little obvious, but I hope you can give me some advice. For cross netweork communication, by giving a suppositional example like: For party A, setup ./millionaire_prob_test -r 0 -a 172.19.10.151 -p 5051; For party B, setup ./millionaire_prob_test -r 1 -a 172.19.20.12 -p 5052. Can it works?
Here, what I'm wondering is how can two parties A and B know each other's socket server listening on which port?
In the example given above I assume that address and port defined after '-a' and '-p' both refer to what the other server are and is listening to. However, we donot set both party's server listening port, so how do party A and B know which port to listen on with the socket if we don't set it? Are the party A and get the same port to listen? If party A and B get the same port to listen, then the above example should be wrong, since they use different port. Am I right?

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

1 participant