Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

177
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda