Node.js Chatroom
jonster5 (34)

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

You are viewing a single comment. View All
TheDrone7 (646)

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

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