Does anybody have any Idea how to connect to the correct port?
That's quite interesting. When I do my setup, I can use the port number just fine.
Most common, you'll find people setting the port numbers as:
let port = process.env.PORT || 3000;
So if replit ever decides to set the environment variable
PORT, it will automatically work. If it's some falsy value, then
port will be set to
3000, kinda like a fallback.
Hopefully I was able to help! 😜