Issue With Port 80

Hi I keep deploying with reserved vms and this is the error it gives

“2024-06-15T00:49:34Z error: The application must serve traffic on either port 80 (if configured) or the first port in the port configuration. This port was never opened. Check the logs for more information.”

“a port configuration was specified but the required port was never opened”

the port specified is port 80

Hi @belloisaac499 , welcome to the forums!
In your code, is your bot listening on that port?


I am still new to all this so please can you help me out, tho I used the ai to generate a code and this is the code which was generated. I also used the code in the program.

const http = require('http');
const server = http.createServer((req, res) => {
  // Your code to handle the request here
  res.writeHead(200, { 'Content-Type': 'text/plain' });
  res.end('Hello, world!');
server.listen(80, () => {
1 Like

Got it. Could you check the Networking tab and check if the ports are correct there?

@NateDhaliwal I have the same problem: Port configuration was specified but the required port was never opened 8080 to 80

It seems that a bug was introduced by recent updates from Replit. What you can tell us how to fix it?

For your issue, I’m not too sure on the cause. I’ll reply on your topic if I see anything wrong.