PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, January 9, 2022

[FIXED] How can I access a website on a Local Network in an OSX environment

 January 09, 2022     apache, macos, mamp, mamp-pro, phpmyadmin     No comments   

Issue

So I have a website that I created locally but I would like to have other team members access it. I would also like to test my site using my iPhone for testing purposes. Th thing is when I check the Xip.io (LAN only) option (shown in the image below) a URL is displayed in the empty box below it. The problem is that when I use that URL the Xip.io URL in the browser of my iPhone. Nothing displays. Is there an easier way to make my website accessible from other machines locally? Is there a file that I need to edit or are my changes correct?

Thanks

Update I'm using my internal IP. I can access my site with my laptop but other computers connected to my network cannot access my website. I figure that maybe I need to make a change to my httpd.conf file?

enter image description here


Solution

Found a solution! Since I'm working in OSX

Here are my steps:

  • Go to System preferences Selected Network
  • Select Wifi (since I'm connected via Wi-fi)
  • Clicked on the Advanced button
  • Click on the TCP/IP Tab
  • Copy or write down the IPv4 Address:

Then

  • Go to to PHPAdmin
  • Select the database tab
  • Select your database
  • clicked on the options table
  • under option_name Change both values (siteurl and home ) in column option_value to the IPv4 Address you copied from System preferences

  • Opened MAMP Pro

  • entered the same IPv4 Address in the Host IP Address Field
  • Restart server

Helped me



Answered By - Mariton
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing