Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Workspace preview port selection

Hi guys,

Im having difficulty when I want to view my work on workspace in preview mode. It keeps asking me about which port I want to use to preview my work. So, basically, which port I should choose to preview my work in workspace? I've tried them all, but no one worked for me. Any answer will be highly respected.

Thanks guys!

1 Answer

If none of the ports seem to work, then it can be due to one of the following reasons:

  1. The web server (that serves your application to clients such as browsers) may not be running. This can be due to an error in your application that caused the web server to crash.
  2. The web server may be running, but listening on a different port than the ones listed under "Preview Workspace" option.
  3. The web server may be running, but request URL path (such as '/') may not have been configured to return a response.