0

I'm running an Apache server using XAMPP and want to access files from another device on the same Wifi network.

I tried using the IPv4 address of my computer but wasn't able to connect from another laptop. I also tried disabling the firewall and that did not work either

I'd like to access it from devices on a separate network after this.

I'm working with Google Cloud Messaging on Android, and it requires sending information as well as reading information which requires server access.

sjas
  • 18,644
  • 14
  • 87
  • 92
ProgrammingGorp
  • 103
  • 3
  • 11
  • http://stackoverflow.com/questions/5524116/accessing-localhost-xampp-from-another-computer-over-lan-network-how-to – test Jun 27 '15 at 03:22
  • I followed what that link said before I posted this question. – ProgrammingGorp Jun 27 '15 at 03:31
  • same question http://stackoverflow.com/a/22112706/5043552 but not the accepted answer will show you apache configuration for allowing different IPs – Alex Andrei Jun 27 '15 at 05:34
  • Just tried what most posters there said. Still doesn't work. – ProgrammingGorp Jun 27 '15 at 15:42
  • Ah! Got it working. Such a silly mistake I made. I was using the Ethernet Adapter Virtualbox IPv4 address presented in ipconfig, when I really needed to use the Wireless LAN adapter Wifi-Fi. Doing netstat -a showed my the local IP address of my computer where I caught the error. Works perfectly now :) Now I'm just wondering how I can access it from devices not on the network, and do it safely? – ProgrammingGorp Jun 27 '15 at 15:44

1 Answers1

0

Probably you should check http://localtunnel.me. Hope this works for you!

  • Seems cool, is this on Windows too? That looks like a unix command. I'll check out.I – ProgrammingGorp Jun 27 '15 at 14:29
  • To anyone reading this in the future wondering, I use ngrok for both my mac and my windows machine and it works perfectly. It assigns you a public URL to access the server externally or internally. Works on Linux as well. – ProgrammingGorp Jun 27 '15 at 16:08
  • localtunnel not avail for my mac or windows. but I made a stupid mistake and using the correct lan IP worked. Alternatively, ngrok works too. – ProgrammingGorp Jun 27 '15 at 17:54