Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

fix hardcoded port number in Helloworld sample #111

Open
wants to merge 576 commits into
base: master
Choose a base branch
from

Conversation

zllai
Copy link

@zllai zllai commented Nov 19, 2019

I encountered permission denied when running Helloworld sample on Linux, because the client uses ports lower than 1024, which requires root in Linux. However, after I modified the port numbers in run_helloworld_both.sh, the problem still exists.

It turns out the port numbers are hard-coded in Client*/Program.cs. So I made this pull request for following changes:

  1. Modify the default port numbers as following so that no root is required to run the sample on Linux:

    • Client ImmortalCoordinator receive port: 2000
    • Client ImmortalCoordinator send port: 2001
    • Client ImmortalCoordinator CRA port: 2500
    • Server ImmortalCoordinator receive port: 3000
    • Server ImmortalCoordinator send port: 3001
    • Server ImmortalCoordinator CRA port: 3500
  2. Allow clients to receive port numbers in args.

  3. In run_helloworld_client.sh, pass port numbers to client.dll.

  4. Make documents consistent with above changes.

jongoldDB and others added 30 commits January 18, 2019 10:24
…oft#32)

* Change variable names to match Ambrosia terminology change

* Add quick start instructions to UWPExample README

* Update UWPExample codegen script and improve error messages
darrenge and others added 27 commits August 8, 2019 10:38
…d MacOS (no docker) but Linux (no docker) still fails to build the right files
@msftclas
Copy link

msftclas commented Nov 19, 2019

CLA assistant check
All CLA requirements met.

@zllai zllai changed the title fix hardcoded port number in clients fix hardcoded port number in Helloworld sample Nov 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.