Okay so the only thing I did not try was power cycling my router ( due to my office all using the wi-fi ).
After power cycling I can sync fine.
Now a new problem as arose. ( Which was actually my original issue )
I have been trying to set up a localhost using MAMP.
When I go to load localhost, my desktop browser says " It Works"
while my iPhone browser does not refresh to the new page.
So I followed this guide
Now when use the url for my new virtual host
my desktop browser displays my website,
my phone fails to reload.
A couple questions:
- Does the device correctly mirror the same page that's on your computer if you go to a public site like yahoo.com or google.com?
- If that works for you, then use the native browser on the device and try to navigate directly to the page on your computer. You'll need to use the IP address of your computer so the URL will look something like http://192.168.x.x/mysite/index.html. Can you see the page that way in the native browser on your device?
Let me know and we'll dig into this further,
No. The http://192.168.x.x part (or whatever your actual IP address looks like) refers to the webroot on MAMP. I don't know for sure what folder that will be on your system, but WAMP (Windows version of the same software) has a menu item "www directory" that takes you straight to the correct folder.
I'm assuming you have the "yogafest" pages you intend to test in a subfolder under your webroot folder. So the "mysite" portion of that URL would be the name of the folder you're using. And then of course that last bit is the name of one of the pages you have in that folder.
If you're able to access your site in Chrome via localhost, then all you really need to do is to use that same URL in the native browser on your device but replace the "localhost" portion with your computer's IP address.
Hope that makes sense. Let me know if you can see your page on the device or if you still have questions.
That makes sense for sure sadly it did not resolve my issue, but to be clear when I use localhost in Chrome on my desktop I only get the message "It Works."
If I search localhost:8888 I actually access my website directory.
That wasn't intended to resolve your issue, it's intended to give me more info about what the problem is. Don't give up yet.
So, in the native browser on your device try the same URL you're using in Chrome, including the :8888 part, but replace "localhost" with your computer's IP address. If you can't see your site that way, it means the problem is one of two things:
- You need to find a menu option in MAMP that says "Put Online" and click on that.
- You may need to go into the Apache configuration files and allow outside computers to access your site.
Oh, and it would help if you'd post the full URL you're using in Chrome to display your web page.
These are the URLs I have been using that work in Chrome.
These are the URLs that have failed in my native browser on the device
1. My free version of MAMP does not have a "Put Online" option.
2. This might have to be the route we go.
Ok, this is good info. It means that right now Apache is not able to serve content outside of your machine. That's why even the native browser can't see your site. Once we get that problem solved you should be able to see the site in Edge Inspect as well.
Here's some things to try:
- This might be because your firewall is blocking port 8888. Try turning off your firewall temporarily and see if http://192.168.2.4:8888/yogaFest2013/ works from the native browser on your device
- Open a terminal window and type in the following: netstat -an | grep "LISTEN" and let me know what it says
- Open your httpd.conf file and look for a section like this:
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
Let me know what your's looks like.
1 person found this helpful
I had forgot about my routers built in firewall.
It was preventing my phone from connecting.
Is there a way to prevent this from happening when the firewall is turned on?
I am bad a network related things.
I don't know what that router's software is like, but most will allow you to add permanent exceptions by IP address or port number. That's the best I can do to help there.
So things are working for you now? You should be able to use the localhost address in Chrome on your computer and Edge Inspect should follow along.
BTW, I'd recommend you stick with using localhost unless you have a real need for virtual host names. With localhost your connected devices should be able to follow along without the additional complication of xip.io.
Yes I am all good to go.