Support » Localhost Installs » Accessing my local site from another pc using mamp

  • alhoraibi_imad


    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 “” 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • RossMitchell


    Well done for getting your localhost to use your domain name “”, 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 “”

    Now on each PC on the LAN, add a line like:
    maybe also:
    to the “hosts” file on each computer, details here:
    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.