Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

176
Vistas
How can I place a the server in the same port that live server is running my client-side code?

I'm opening index.html with the Live Server extension for VS code, so I know it's hosting on http://127.0.0.1:5500.

When I try to run a server.js file on 5500, like that:

const app = express();
app.listen(5500, () => console.log('listening on 5500...'));

it gives the

Error: listen EADDRINUSE: address already in use :::5500

how can I host them both in the same place or alternatively, if I choose to host the server on port 3000, how can I set up the html code so it goes to the right place?

<form action = "/frases" method="post">
            <input id= 'frase' type="text" name="frasefavorita">
            <button id= 'send-frase' type="submit">Enviar</button>
    </form>

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda