JumpStart PHP Environment - connection timed out

Well I finally have found a bit of time to work my way through the book JumpStart PHP Environment. I got as far as chapter 4: Virtual Machine which is what I am mainly interested in learning right now.

I have Vagrant up and running, but when I try to load http://homestead.app/ in my browser I get the error: “The connection has timed out. The server at homestead.app is taking too long to respond.”

My OS is Windows 10 and I am using the latest version of Firefox as my browser.

Because I am so new to virtual machines, I really have no idea where to look to troubleshoot. Can someone please give me a few suggestions here?

1 Like

Did you correctly configure your hosts file? That’s what will make homestead.app redirect to your VM.

Yes, I did - if it involves no more than adding the IP address and homestead.app.

When I was setting up everything, I did have problems with the vagrant up command in my CLI causing a timeout error message, but when I entered vagrant up again to double check, it said that my VirtualBox VM was already running, so I don’t think that that is the problem either.

OK… what else might be sticking points…

  • Are you sure those hosts changes stuck, did you save as admin or whatnot?
  • Can you vagrant ssh from the same directory from which you vagrant up and get into your VM’s command line successfully?
  • Are you sure that you have the right sites entries set up? Or did you leave them at default, which should be fine…?

Also check that a port isn’t required. Some VMs run on 3000 or what not and do not setup port 80 which would give you a DNS related error, as it won’t know where to look.

AFAIK Homestead handles port forwarding and you don’t use port #s, but it doesn’t hurt to be sure, especially if you’re changing the setup at all…

I’m sure the hosts file is set up properly, because I have used it other times successfully, but not with Homestead.

I am going to be away from my laptop for a bit, but I will check out the other suggestions as soon as I can (maybe in an hour or so). Thank you.

Ok. I tried vagrant ssh from the directory homestead_improved-master and got the following: ssh_exchange_identification: read: Connection reset by peer

If it helps at all, this is what I get when I first try vagrant up:

It’s been a while since I’ve had time to work on this, but I’m back at it - I refuse to give up.

I’m still timing out with “vagrant up”, but then when I run “vagrant up” again, I get the message that the virtual box is already running.

I would like to try to increase the time allowed, but have not idea how to change the value of “config.vm.boot_timeout” or even where to find it.

Could someone please point me in the right direction?

I would recommend using a puphpet.com box. If you get the same result than it is likely a host os issue.

Something that just came to me is that on Windows you need to run the command prompt as admin. Though I think that is for the smb file sync.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.