Jump to content

local website lost on changing the network


ajoo

Recommended Posts

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 !

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.