Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!