Hello I am using WAMP server in my pc, I am developing website and the project is stored in C:\wamp\www\myproject folder. I connected my phone through WIFI and from the phone browser I am trying to access local host by entering my PC IP Address 192.23.141.30 but it does not displaying my project website.
Plese give me any method you know to access localhost if you know.
Thank's in advance...
Left click the WAMP icon in your taskbar and click 'Put Online'. This should allow access to everyone and not just localhost. Then enter the link into your mobile as 192.23.141.30/myproject.
Normally, you could access your localhost with your LAN ip. Make sure that your firewall don't block the access.
Alternative is to simulate your phone on your pc. See for example: http://www.opera.com/nl/developer/mobile-emulator
Related
I have made a web application to store patient records for a doctor and i am using xampp to host it locally.Using xampp i can access my login page of the application just fine by putting my pc's ip address in the mobile's browser and the path to login page but when i enter the username and password and touch login it says this site can't be reached.It works fine on pc but on mobile only login page can be accessed.I have been using codeigniter(hmvc) to build this application.i am connecting them to the same wifi network.
Yes, you can use access your application running on xampp on your mobile just the case that your php application and mobile has to be connected on same network.
Ok, so here is the scenario:
I have computer A inside my local network.I added a new website, let's say http://localhost:81/hesk/admin/admin_main.php using XAMPP through Mysql & phpMyAdmin.
So, in a browser running in computer A, if I type http://localhost:81/hesk/admin/admin_main.php in the address bar and hit Enter, everything works fine. I can access the website.
Now I wanted to access this website from other local computers, say, computer B , not from the outside world, but from inside the same local network.
Computer A's IP is 192.168.1.59, and http://localhost:81/hesk/admin/admin_main.php is running on port 81.
Edit :- i am using simple d-link router where i have given static ip to my hosted PC & all others are in DHCP automatic Get an ip mode.
Use the ip address of the system which has the php code, instead of localhost in the same url.
For your code you should use: 192.168.1.59:81/hesk/admin/admin_main.php
Note: you should have your apache and mysql started in your xampp control panel on your server computer(A)
Hi I am currently learning Ionic Framework for hybrid mobile apps and I want to connect it to localhost server (XAMPP).
I am developing Ionic App on my PC through ionic start myApp blank and ionic serve.
I have a php file on my htdocs folder in XAMPP which serves as a server-side function to call/query in my MySQL database.
Well, it goes well in development saying that I am working Ionic App on my PC where XAMPP also installed.
But, when I try to ionic cordova build my Ionic App for debug deployment as APK file and install the APK on my Mobile device it is not working.
Well, I know the reason why.
because of the link in my codes: var link = 'http://localhost/api.php';
My questions:
How can I access the PHP file inside localhost server XAMPP
on my PC when my Ionic App is already APK and installed on my
Mobile Device?
Can I use my PC IPv4 address (saying that PC and Mobile are connected
on same WIFI) instead of localhost in var link?
I hope someone can give me a light on my dark room.
Thanks in Advance
I got a way on how to connect to my PC localhost web server.
First, I tried to connect to my WIFI IPv4 Address using the command ipconfig on cmd. And I tried to connect to it, then it was a success. I was able to connect my Mobile App to my PC Localhost web server (XAMPP). But the problem is, whenever the WIFI restarts, the WIFI IPv4 Address changes because of my WIFI DHCP(from what I read).
So, I came up with a another solution to that. I set my WIFI IPv4 address in my PC's Control Panel/Network and Internet/Network Connections and edit the WIFI IPv4 Address, instead of automatically assigned, I changed it to static. Whenever my WIFI device restarts, it does not change my PC WIFI IP address.
So, that's how my problem solved. But I think there will be a problem sooner when theres a same WIFI IPv4 address assigned to other connected device on the WIFI. But, it is okay for now. I am glad that I can access my MySQL database on XAMPP in my PC from my Mobile Device and able to query data.
Thanks. I hope this can solve the problem of other people who has similar problem of mine. Happy coding.
I have a script which redirects the user to a mobile subdomain like m.localhost.com if he/she access the local site on a mobile phone or tablet. Everything works fine on my PC (The place where my local website is hosted and I'm using Apache 2.4 and PHP 5.5) but when I type my ip into my mobile browser for example, it redirects me to (m.192.168.1.102) and when I type localhost.com it doesn't shows me my local website even though the host and the mobile are connected to the same network. I don't want to edit every hosts file on every device, I just want to visit the subdomain on another device rather than my PC. I know it might be a stupid question but how does the hosts like 000webhost and Ifastnet and many others redirect their users to subdomains?
Thanks in advance
I build a webisite with wordpress and i want to show my website to other client computers
I run xampp server at server computer
How can i do for that?
plz answer quickly..**
Assuming the web server is accessible from the client's computer, you'll need to give connect from the client using the machine's IP address or hostname.
You will have to use a dynamic hostname, dyndns offers them.
Or put xampp it in sync folder of Dropbox. I'm using it like that. Synced from home, then when i open it from work, i got it there too.