Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Testing local server with MAMP/wordpress on external device?

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #44554
    croydon86
    Participant

    Hi guys

    I am currently developing a wordpress site locally using MAMP PRO.

    I would like to test this site on my iPhone but am not sure how to configure my mobile device to talk to the local server.

    Does anyone have any information on how to get this working or point me in the right direction? Do you need another application to do this, or can it be done with mamp/IP address etc?

    Thanks

    #134091
    TreeRoot
    Participant

    I can’t give you anything specific to MAMP PRO, but I can tell you how I got this working with a localhost/development copy of Apache. This page helped me figure out a way to accomplish this:

    http://www.dd-wrt.com/wiki/index.php/DNSMasq_Local_Network

    What I needed to do was implement the settings within my router’s “DHCP / DNS Server” settings. I had to enable “Use internal DNS” within my router. So, let’s say I had the following Apache VirtualHost’s setup to test some site(s).

    http://mytestsite1
    http://mytestsite2

    I’d have to implement the following within my router’s DHCP/DNS settings:

    address=/mytestsite1/192.168.1.102
    address=/mytestsite2/192.168.1.102

    The IP number at the end would be your local IP address.

    So, if you were to implement something like this and enter the following URL’s in your mobile device:

    http://mytestsite1
    http://mytestsite2

    The router would reroute that to your site in MAMP. Any device with access to your LAN would be able to connect to those addresses as well.

    #134104
    Senff
    Participant

    You could try using tools such as https://forwardhq.com/ or http://progrium.com/localtunnel/

    #134142
    croydon86
    Participant

    Thanks for your responses guys. Some good information there.

    The problem is I can get to the local domain no problems using either the IP address or through the terminal, but I can’t seem to connect to the wordpress database. (at least, this is what I think the problem is)

    I just seem to get the index page (no styling). When I click on another page, it says the page cannot be found.

    Any ideas what this could be? I have tried googling around but cannot find specific information on connecting to a local wordpress installation. Maybe I am not looking in the right places

    #134147
    croydon86
    Participant

    Ok got it… http://www.designshifts.com/view-local-wordpress-website-on-your-iphone-or-ipad-with-mamp/

    Turns out it is just simply calling the IP address. Only thing I missed was not putting the IP address as the website URL in the wordpress admin

    #134150
    smcr
    Participant

    I’ve had the same problem seeing my localhost test site on my iphone. All I can get is an unstyled page. In the WordPress General Settings I have:

    WordPress Address (URL) http://localhost:8888
    Site Address (URL) http://xxx.xxx.x.x:8888/wordpress

    The x’s are of course the IP address and “wordpress” the folder housing all the wordpress files. Are your settings different from these?

    #134152
    croydon86
    Participant

    @smcr yes I know what you mean. To get it working I didn’t follow the article exactly.

    In the two wordpress URL’s in admin, enter the following only…

    http://xxx.xxx.x.x

    So only the IP address. Make sure you write that in both boxes. Then navigate to this IP address on your mobile.

    Forget the port at the end, and the name of the host, as this was causing it to fail for me

    #134174
    smcr
    Participant

    got it, thanks

    #134312
    contentJones
    Member

    It can also be easier to change/troubleshoot by placing the settings in your wp-config file…

    define(‘WP_SITEURL’,’http://your-site-url.com’);
    define(‘WP_HOME’,’http://your-site-url.com’);

    #287261
    GarryJones
    Participant

    Which is the best product among those listed in this site?
    https://buywirelessrouternow.com/best-wireless-router-for-home/

    #293439
    GarryJones
    Participant

    Who can recommend to me the best product among those in the list on this site?
    https://buywirelessrouternow.com/best-rangefinder/

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘CSS’ is closed to new topics and replies.