Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am working on a web site which is running on my PC via XAMPP. I want to test the site on my android tablet (galaxy tab) to make sure that the responsive design behaves that way it is designed to. I am wondering if there is a way to connect my tablet to my PC in a way that will allow me to view my localhost site on my tablet. This would allow me to fix bugs without having to upload every change.

share|improve this question
1  
I think it can be possible if your PC and your tablet are in the same network (WIFI for instance). –  Zistoloen Apr 2 at 13:51

1 Answer 1

up vote 4 down vote accepted

If the PC and tablet are on the same network, it is possible. All you'd need to do is use the IP address of the PC to access the site. So instead of accessing it via localhost (as you would on the PC), you'd access it via 192.168.1.2 (example).

If the devices are not on the same network, it's still possible to access the PC with the tablet if you setup whatever router the PC is behind to port-forward port 80 requests to the PC hosting the web site/app.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.