drogonframework / drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows
MIT License
11.45k stars 1.1k forks source link

What's a good way of finding a port that is not bound in drogon? #1724

Closed Eskildd closed 4 months ago

Eskildd commented 1 year ago

I am currently working on an app hosting a website on my local network. Does anyone have any advice on how I can find an available port?

Your input is greatly appreciated. Thank you in advance!

albaropereyra22 commented 1 year ago

I believe you can make Drogon use any port. Here is more information about ports https://www.grc.com/x/ne.dll?bh0bkyd2

drizzle042 commented 1 year ago

Yes @Eskildd you can make Drogon use any port not used by any application or service on the OS. To see all used ports on your OS is platform specific. I don’t think it’s something Drogon should worry about. There are tools designed specifically for these like net-tools on Debian Linux distros (also available on Ubuntu Jammy Jellyfish)