• Hello everyone
    I installed wordpress in my local pc using mamp and every thing is okay.
    I can also login to the site from other pc using the ip address ex. (128.3..:8888)
    and this is my issue

    how can i change the localhost or the ip address into like a domain?.
    I tried every thing like changing the hosts file in my mac,, changing the coding in mamp files, I followed many ways and steps, finally I succeed to change my local host into “sgas.dev” and I can login to it from my pc.

    But I couldn’t access it from any other pc which is connected to the same network

    Please I need help

    How can I access my site through local network using a name like domain name https://example.dev

Viewing 2 replies - 1 through 2 (of 2 total)
  • Well done for getting your localhost to use your domain name “sgas.dev”, you now need to get this computer to always use the same IP address. Either change the network interface configuration to a static ip rather than assigned by DHCP. OR in your router settings pre assign a specified address to its MAC.
    For the sake of this example lets say that this address is “128.3.1.27”

    Now on each PC on the LAN, add a line like:
    sgas.dev 128.3.1.27
    maybe also:
    www.sgas.dev 128.3.1.27
    to the “hosts” file on each computer, details here:
    https://en.wikipedia.org/wiki/Hosts_%28file%29
    There are browser plugins that can do this for you too.

    Be warned that some browsers (chrome?) do not use the hosts file.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Accessing my local site from another pc using mamp’ is closed to new replies.