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

Yuan Tang
Yuan Tang
14,168 Points

cannot connect to localhost:3000

I have followed exactly the same steps to intall everything but I cannot connect to localhost:3000. When I run this command: bundle exec rails server, it says DL is deprecated, please use Fiddle. Let me know if anyone else is having the same problem.

4 Answers

Yuan Tang
Yuan Tang
14,168 Points

I haven't resolved the issue yet but I can use the alternative, treehouse VM. Let me know if anyone had this problem fixed thoroughly.

Ian Blakeslee
Ian Blakeslee
22,154 Points

Are you using Windows 64-bit?

Yuan Tang
Yuan Tang
14,168 Points

I got it! There is a note somewhere for one of the videos saying these:

You should access port 3000 with the following address 127.0.0.1:3000 rather than 0.0.0.0:3000.

It is also not necessary to type the "rvm use" command on Windows.

This will solve the problem!

Shaker Ahmed
Shaker Ahmed
7,553 Points

How exactly are we supposed to access port 3000 with the 127.0.0.1:3000?

Ian Blakeslee
Ian Blakeslee
22,154 Points

This fixed it for me: https://teamtreehouse.com/forum/cant-get-rails-server-to-work

Stone Preston's answer did it. I had to add :x64_mingw to the tzinfo section in my gem file. I found the gem file inside my testapp folder and then opened it in a text editor. The line I needed to add to was near the bottom. Then I updated the bundles, started the server and it worked. 's Follow the link above to Stone Preston's answer.