Right now, I'm running my site on my Mac OS X locally via Apache.
I'm trying to reproduce a bug that only happen on iPhone Safari. I'm trying to avoid keep pushing the code to the staging server, pull, and then, test on my phone.
Is there a way to access my local site via my phone? via some kind of IP address?
make phone connect to the same WIFI as MAC OSX
run the server on the non-localhost address (LAN DHCP allocated), noted as SRV_IP
access the SRV_IP from your phone
Related
Whenever I run
npm start (react-native-scripts start)
It hosts the Application on the endpoint of 192.168.1.200:19000
The issue is my Windows computer has the IP address of 192.168.0.31
Is there a way to change this React Native hosting IP address so it is hosting on the correct IP?
The application does not start etc. The only way to run this expo app and have it connect is through the tunnel (which is 70% slower when refreshing the app etc).
Side note: This bug does not happen on my mac OS computer, Only on my Windows 10 computer development machine I am trying to transfer to.
Edit: Is there a way to always have this be my computer's router assigned IP address? I'm confused why this breaks for RN on windows vs RN on mac.
Check the below question thread.
It answers your query.
React Native Expo change default LAN IP
Hope it helps.
I am running an Apache server (WAMP .- Windows / Apache / MySQL / PHP installation).
I am running a HTTP server for some development I am doing. This project involves comunicating with a HTTP server running Firebird.
Now, all is well until I try use the external IP address from a mobile device to access the server. Then it just times out.
I have correctly setup port-forwarding on the router and everything is accessible from ANY other computer. So the url goes something like this..
http://70.12.123/scriptToRun.php
To test this, I have connected from another computer on the LAN and it connects fine. I have used Teamviewer and connected from a computer NOT on the LAN. That also connects fine.
However, whenever I try to use the same url from a mobile device (phone) it just times out.
Anyone have any ideas why I cant connect using a mobile ?
Dave
I have just set up a wi-fi network from my mobile (Android). I have all my files on my desktop computer (192.168.43.212) and want to access localhost over there from my mobile that used for the wi-fi network.
On my desktop I can access localhost through the normal [http://localhost] or [http://192.168.43.212]. Apache is running on port 80 as usual.
But I can't access it on my mobile using [http://192.168.43.212]. My desktop computer runs in Windows 7 and I've turn off the firewall but still not working.
You can use photon browser on the web-stores, but it doesn't work for normal browsers on mobile devices due to their operating system's security.
I can connect my iPad directly to my Windows 7 laptop using a Win7 adhoc connection and the laptop's internal wifi. That much works. (I tried the alternative of connecting via a wireless router, unsuccessfully.)
Now that the connection is made, I need the iPad to access the XAMPP Apache server that's running on the Win 7 laptop.
I run 'ipconfig' on Windows to find the IP address assigned to the laptop, type this into the iPad's Safari browser address bar, and get "Unable to connect to http://www.192.168.2.5 because you are not connected to the internet."
The 'http://www' is inserted by Safari, I did not type that in.
I also tried including the port that Apache is listening on: 192.168.2.5:80 , with the same result.
I do NOT want to connect to the internet at large (I don't have the two wifi cards necessary to do that), but only to the local Apache server on the Win 7 laptop.
Another answer describes doing this with Bluetooth. I do not have Bluetooth available on the laptop.
The iPad is running iOS 7.1.2.
I've tried the usual tricks on the iPad, resetting Network Settings, turning on/off Airport, etc. Still, Safari insists on inserting 'www' in the address and denying the connection.
How do you connect an Ipad2 to a localhost server running on Windows 7 without having a simultaneous internet connection?
I am currently on a mac using the pre-installed Apache server.
Now I need to cross-browser test some websites, and therefore I need to access my pages on some other computers. How can I make my localhost-sites accessible for other computers on my WiFi (without uploading to another server)?
Thanks in advance.
Apache server's default configuration should allow other computers (even ones not on your local network) to access whatever it's serving up.
You can access your server from another machine by using the IP address of your server. You can find the IP address of your server by finding a console (this works in Windows and Mac machines) and typing in "ipconfig". (For linux machines, it's "ifconfig".)