Test web system on Smartphone

0

I have an application in PHP that is running in XAMPP and is being accessed via http://localhost/ it is working on the computer but I would like to test it on my smartphone (via browser ), how do to test it on my smartphone?

Details:

  • Both PC and smartphone are on the same wi-fi network.
  • Smartphone is 4th generation.
  • Operating system of Smartphone : Android 4.4
  • Operating system of PC : Windows 7.
asked by anonymous 21.05.2015 / 15:53

1 answer

1

You need to access your smartphone through the IP address of your computer on the local network.

To find out the IP address of your computer, open the Start menu and navigate through the Todos os programas > Acessórios > Prompt de Comando menu. Open Command Propmpt and type ipconfig and hit Enter. This command will result in your IP address settings. Now in the result displayed in the Command Prompt look for the line containing Endereço IPv4 the value just in the sequence is your IP address.

Example:

C:\Users\william.urbano>ipconfig

Configuração de IP do Windows


Adaptador Ethernet Conexão local 2:

   Sufixo DNS específico de conexão. . . . . . : 
   Endereço IPv6 de link local . . . . . . . . : fe80::35a7:b255:2504:d0e9%14
   Endereço IPv4. . . . . . . .  . . . . . . . : 10.9.0.78
   Máscara de Sub-rede . . . . . . . . . . . . : 255.255.255.0
   Gateway Padrão. . . . . . . . . . . . . . . : 10.9.0.254

Adaptador de túnel Conexão Local:

   Estado da mídia. . . . . . . . . . . . . .  : mídia desconectada
   Sufixo DNS específico de conexão. . . . . . :

In the example above, 10.9.0.78 is the IP address of my machine. If I access it through a Smartphone browser I will be accessing my web server.

    
21.05.2015 / 18:30