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

Replit does not support normal servers, only http servers. The server you currently have setup will not work on replit.



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


@PerfectsBots websockets? Im not sure what you mean but i guess its possible. You need to set up a websocket server then find a websocket client for your client application (if its on the web, there already is a websocket connection system)