lundi 28 septembre 2015

Ruby on Rails: http://localhost:3000 not working

Machines:

  • VM Machine (Ruby on Rails Server) - 192.168.1.37
  • Host Machine (Machine where the VM resides) - 192.168.1.38
  • Remote Machine (Dev Machine) - 192.168.1.36

Notes

  • VM Machine is running Cent OS (console only)
  • Host Machine is running Windows 7
  • VM emulator is Virtual Box
  • Remote Machine is Running on Windows 10

Pre-requisite

  • Added 192.168.1.37 as localhost in the Host Machine host file
  • start the rails service bundle exec rails s -p 3000

Problem

  • accessing site http://localhost:3000 NOT working
  • accessing site http://ift.tt/1Fv2Vc4 working

What Is Needed

  • Access the site via http://locahost:3000

Quirks

  • It works on remote machines running Linux (changed the host file to point to VM Machine as localhost)

Aucun commentaire:

Enregistrer un commentaire