Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
2

Node.js Chatroom

jonster5
jonster5

Does anybody have any Idea how to connect to the correct port?

4 years ago
You are viewing a single comment. View All
2
TheDrone7
TheDrone7

@jonster5
nothing, don't pass a port number. For example:-

let listener = app.listen(); console.log(`Listening to port number ${listener.address().port}`);
4 years ago