Jump to content
Sign in to follow this  
ajoo

local website lost on changing the network

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 !

 

Share this post


Link to post
Share on other sites

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 !

Share this post


Link to post
Share on other sites

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.

Sign in to follow this  

×
×
  • 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.