Example Binary panics with port 80
samrock5000 opened this issue · comments
Samuel Nevarez commented
device: MacBook Air (M1, 2020)
let port = std::env::var("PORT").unwrap_or("3000".to_string());
works
error was:
Listening on http://127.0.0.1:80
thread 'main' panicked at 'error binding to 127.0.0.1:80: error creating server listener: Operation not permitted (os error 63)', /Users/johndoe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.27/src/server/server.rs:79:13```