Skip to main content

Error - Port already in use

Learn how to fix errors related to the port being in use already in Percy

By default, Percy uses port 5338 to start the Percy CLI server. At times, there might be other processes that are already using this port. This results in the “port already in use” error.

Try these solutions to resolve this error:

Solution 1: If possible, kill the process running on port 5338 using these commands:

lsof -i :5338
node 22165 username   29u  IPv6 0x82ab52d68g4604c8      0t0  TCP *:5338 (LISTEN)
// kill -9 $pid
kill -9 22165
netstat -aon | findstr :5338
taskkill /PID 1234 /F

Solution 2: Change the port on which the Percy CLI server runs using the --port command as follows:

npx percy exec:start --port 3000

Reference Topic

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Download Copy