Created
May 1, 2020 15:18
-
-
Save niradler/a31bc5854a55a6a818622613aa0679f3 to your computer and use it in GitHub Desktop.
fix port issue on linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libcap2-bin | |
sudo setcap cap_net_bind_service=+ep `readlink -f \`which node\`` | |
# or | |
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 900 -j REDIRECT --to-port 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment