Web development using Localhost (Android phone and WordPress) - wordpress

I am trying to develop a few hard coded HTML websites for mobile use, and also WordPress sites at the same time (wsing XAMPP).
The only way I know how to access a locally hosted website from mobile is connecting to the IP address of my computer which automatically connects to the "localhost" domain.
However, the local site I want to develop has the custom local domain "xx.local", whereas localhost is dedicated to my WordPress installs. e.g. localhost/wpsite
Either of these 2 fixes would be satisfying:
How can I install WordPress on localhost but with a different domain name e.g. wordpress.local, so that the Android site I'm testing can have the native localhost domain.
or
How can I access different locally hosted sites from an Android phone (instead of the IP which automatically retrieves "localhost")

How can I access different locally hosted sites from an android phone (instead of the IP which automatically retrieves "localhost")
If is your phone rooted (or if you are willing to root it) you can install hosts editor (this one is my favorite) and the rest is pretty obvious. You add new entry with IP of your server (the machine with XAMPP installed) and the desired domain (eg: "local"). All you need to do then is to connect both machines to the same network.
Bonus tip: if you enter just "local" to your Chrome on Android, you will be redirected to google search of word "local". You need to type "http://local" instead.

Related

Accessing local installed Wordpress from a mobile device in the same network

I have set up the latest Wordpress version 5.3.2 on my local machine by using XAMPP 3.2.4.
Since I want to check out my homepage also on a mobile device (not only an emulator on my desktop) I tried to access it from my phone. I always get the error "ERR_CONNECTION_REFUSED" when I try to call it with "http://192.168.0.170/wordpress". This is the IP of my notebook where XAMPP is running.
Interesting thing to add: It works without issues from another notebook in the same network. What I have seen is, that the mobile phone redirects from the IP address to "localhost/wordpress" while the notebooks do not redirect.
Now, I am aware that this is not a new problem and I have read most likely all posts on this topic in the internet. What did I already tried and changed in order to get it running:
Add an entry in the Firewall settings to allow connections on port 80
Change the site URL and home URL in the wordpress settings to the local IP
There are multiple suggestions to change settings in the Apache config files from XAMPP. I did not do any changes there as the code which is proposed to be changed cannot be found in the files.
Do you have any idea why it could not work on a mobile device while it does work from another notebook?
Thank you very much!
Regards,
Philip

Acessing WordPress locally on different network

I've been having trouble accessing my local wordpress project on different network. The site just keeps loading, and I can't even access the admin panel. I inspected the net panel. It's showing this IP instead of 'localhost' or my real local IP. Since I'm new to wordpress I would like to hear some solutions to this problem.
EDIT: The problem was in the Database. That IP was stored in options table.
I used interconnectit to change the '192.168.0.12' to 'localhost' and I can confirm that it works now.
To run wordpress on your local pc you should have a server installed, for example wamp server.
If this step is fine, make sure that you are masking correctly localhost with this ip at hosts file (C:\Windows\System32\drivers\etc).
Finally, if you are moving wordpress from another location, make sure that all db records (especially on wp_options table) have the url changed.
For sharing project hosted localhost over network, you can use Ngrok

Hosting domain emails on Windows and Wordpress on Linux

I am looking for some help here. I have configured my domain emails on Windows hosting and it is working fine. Next I want to deploy a Wordpress application on Linux hosting under the same domain.
It is possible to have the emails in Windows hosting and have the actual web application in Linux hosting?
I already have configured the dns of both hostings in my domain account. The emails are working fine but when I try to access to my domain name, it doesn't show up the Wordpress app (it shows up the default "Under construction" page of my Windows hosting)
Anyone can give me some advice? Thanks in advance.
make sure you are edit the A record to your linux server. A/#/www should pointed to your linux server IP Address. And keep the MX to your Windows server.
For example, this is how to configure it on Godaddy https://support.office.com/en-us/article/Create-DNS-records-at-GoDaddy-for-Office-365-f40a9185-b6d5-4a80-bb31-aa3bb0cab48a
Sure, just point your DNS MX record of your domain to the Windows server (you seem to have this figured out already) and point the DNS A resource record to the IP address of your Linux server.

How to access MAMP's localhost:8888 from VMWare fusion for WordPress?

I have VMWAre Fusion running on my MacBook Air running Windows 7. I would like to use this local development environment to test my sites in Internet Explorer. Currently on my Mac and using MAMP, I can access my WordPress site via the following URL: localhost:8888/example. How would I essentially be able to access this local site through Internet Explorer in VMWare Fusion?
Turn Internet Sharing on in System preferences -> Sharing and in navigate to the given IP address. You might need to change your Wordpress site URL to that IP address for everything to work properly.

How do I make local sites available across home network using MAMP Pro?

I'm using MAMP Pro to create virtual server url's for my local sites I'm developing. I'm having a play with jquerymobile at the moment and have assigned a server name in the "hosts" section of the MAMP admin that is "http://jquerymobile.dev". This works fine on my main machine MAMP is running on but would love to be able to see what I'm doing on my iPhone that is also on my home network.
I can successfully navigate to my computers IP address from my phone and it shows the MAMP homepage, but I want to also be able to navigate to "http://jquerymobile.dev" on my iPhone. Is this possible?
You can use the hosts file on other devices in your local network and forward jquerymobile.dev to the local IP address of the machine running MAMP.
I don't think this is possible on an iPhone though. You might want to try to change DNS zone settings in your router.
Thanks Julesj,
In the end I found the easiest way to achieve what I'm after is using https://showoff.io/

Resources