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

Ruby Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Windows

kyle kitlinski
kyle kitlinski
5,619 Points

launching rails server "TCPServer Error"

Trying to start the Treebook project and I'm having trouble getting my rails server running on windows. I've done the whole install process several times and keep getting the same error. If anyone has a solution it would be greatly appreciated.<br> screenshot of cmd<br>: http://i57.tinypic.com/5ujy2v.png

2 Answers

Looks like you may have something already listening on port 3000. You can provide the -p option to specify a different port, which will obviously change all of your URLs to be http://localhost:3333

rails server -p 3333

Let me know if you're still running into the error on a different port.

kyle kitlinski
kyle kitlinski
5,619 Points

Thanks for the quick response! that did the trick

Any time! Just be wary that while it could be a normal program you have running listening on port 3000 it may also be that your server is not shutting down properly. If you run in to a similar issue after running on port 3333 for a while you may need to look into this. Of course a reboot will clear out and rails servers that may have locked up but that's not an ideal solution.