ajoo Posted February 19, 2020 Share Posted February 19, 2020 Hi, I am using vagrant to fire up my local server. My hosts file for firing the server using the mobile network is as below: Quote # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost # 0.0.0.1 mssplus.mcafee.com # 192.168.111.17 franchisee.com # Using Office WIFI 192.168.89.18 franchisee.com # Using Mobile WIFI and my corresponding Vagrantfile is :- Quote # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "syone/lamp" # config.vm.network "public_network", ip: "192.168.111.17" # Using Office WIFI config.vm.network "public_network", ip: "192.168.89.18" # Using Mobile WIFI #Vagrant v2.0+ . . With these settings I am able to access my website using chrome on windows. However if I change the settings for using the Office WIFI, i.e. comment out the lines for Mobile Wifi and un-comment those for the Office Wifi, I get the following error. Quote This site can’t be reached franchisee.com took too long to respond. Try: Checking the connection Checking the proxy and the firewall Running Windows Network Diagnostics ERR_CONNECTION_TIMED_OUT I am sure that previously I have made the switch numerous times and it worked. I wonder why I am unable to switch networks !? I have cleared the DNS Cache as well as the chrome browsing data but that did not help either. Hoping that someone can shed some light on this. Thanks all ! Quote Link to comment https://forums.phpfreaks.com/topic/310076-local-website-lost-on-changing-the-network/ Share on other sites More sharing options...
ajoo Posted February 20, 2020 Author Share Posted February 20, 2020 Hi, I got this, so no worries. For the curious, I had the wrong network ip address. I was using the lan address while using wifi network. Thanks all ! Quote Link to comment https://forums.phpfreaks.com/topic/310076-local-website-lost-on-changing-the-network/#findComment-1574629 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.