How to open a port on replit with java?

Hello to all!
I have created a small java server that listens on port
While there is no error, I go to the site "" but it tells me: "Make sure your repl has a port open and is ready to receive HTTP traffic." Don't the ports work the same on replit? I'm sure the problem is not the code but the ports. Thank you very much for your answer, it will help me a lot.

You are viewing a single comment. View All


Is it possible to get around this problem by using web sockets?