Skip to content

Instantly share code, notes, and snippets.

@niradler
Created May 1, 2020 15:18
Show Gist options
  • Save niradler/a31bc5854a55a6a818622613aa0679f3 to your computer and use it in GitHub Desktop.
Save niradler/a31bc5854a55a6a818622613aa0679f3 to your computer and use it in GitHub Desktop.
fix port issue on linux
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