• Resolved loeppkydesigns

    (@loeppkydesigns)


    Hello,
    I know this is not necessarily a wordpress question, but I could really use some help.
    I created a website using MAMP to use a local host on a companies Intranet server. If the server is connected to other PCs in the building, how do I go about accessing my website on those other PCs?
    So right now I currently enter https://localhost/gardewine
    I know this works great on the PC that runs the Intranet, but will not work on the other PCs (as expected). What do I do next?
    Thank you so much for any help you can give me.
    Stacey

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    In theory you should be able to access your website from other LAN computers by using the site computer’s LAN IP address in place of “localhost”. Depending on the LAN configuration, that IP address could change from time to time. There are ways to get the current IP through DHCP, but I’m unsure if the specifics. Most of the time using the same IP works even with dynamic allocation because the router tries to assign the same IPs to the same machines each time. The IP might only change when the network configuration changes.

    Other potential obstacles are firewalls. If you know the IP address is correct and you cannot connect to the webserver, and the server configuration is correct, checking firewalls is the next step. There’s too many variations to go into here. If there are firewall issues, talk to the company IT staff for assistance.

    Remembering the correct IP address is not easy. Once you’ve established a working connection by IP, you can assign an alias for the IP in each computer’s hosts file. Enter the IP followed by the desired alias on its own line, something like:
    192.168.0.2 apache.lan
    After reboot, users can use “apache.lan” instead of the IP address. That will work until the server IP changes.

    Short version:

    If you just need to access it from other clients on the LAN you will need to install WordPress on the server using the (static) internal IP address of the server it’s installed on, rather than “localhost”. Then anyone on the LAN can access it using the internal ip address of the server.
    Example: https://10.1.X.X/gardwine

    When you install WordPress using “localhost” in the URLs, it will only be accessible from the machine it’s installed on.

    [edit] What @bcworkz said. ??

    • This reply was modified 8 years, 2 months ago by Clayton James.
    Thread Starter loeppkydesigns

    (@loeppkydesigns)

    @claytonjames
    Thank you very much for your response. I have found what my IP address is, but it is not working on other devices still. It keeps switching it to localhost.. which won’t work.
    You mentioned installing WordPress on the server using the “static internal IP address”… sorry I am learning… how do I do that?

    Thread Starter loeppkydesigns

    (@loeppkydesigns)

    I figured it out.. I had to change the settings in my wordpress. Thank you for your help!! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Intranet on other PCs’ is closed to new replies.