You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can bind to port 0 (or just supply a function to .listen() as shown in the docs) which will allow the OS to assign an unused port. Then once the server is listening, you can get the assigned port via server.address().port.
The text was updated successfully, but these errors were encountered:
You can bind to port 0 (or just supply a function to
.listen()
as shown in the docs) which will allow the OS to assign an unused port. Then once the server is listening, you can get the assigned port viaserver.address().port
.The text was updated successfully, but these errors were encountered: