Cesura / nxsh

BusyBox-like remote shell for the Nintendo Switch over telnet [UNMAINTAINED]
BSD 3-Clause "New" or "Revised" License
79 stars 7 forks source link

Added more verbosity to socket bind errors and changed NXSH_PORT to 3005 #26

Open b3b0p831 opened 1 year ago

b3b0p831 commented 1 year ago

Issue: Receiving error 13, permission denied, when binding on port 23.

Description: When attempting to bind to port 23, I was receiving a permission denied error. Additionally, Instead of exiting, the program would continue and the console would display "Listening on :..." even though this wasn't true.

Changes: I added more verbosity to possible socket bind errors in setupServerSocket() and changed NXSH_PORT to 3005. It seems that any port below 1024 returns error 13.