Test Web System on Smartphone

Asked

Viewed 169 times

0

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

Details:

  • Both PC and smartphone we are on the same wi-fi network.
  • Smartphone is 4th generation.
  • Operating system of Smartphone: Android 4.4
  • Operating system of PC: Windows 7.

1 answer

1


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

To find your computer’s IP address, open the Start menu and browse the menu Todos os programas > Acessórios > Prompt de Comando. Open Command Propmpt and type ipconfig and press Enter. This command will result in your IP address settings. Now, in the result displayed in Command Prompt look for the line that contains Endereço IPv4 the value in 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 the browser of some Smartphone I will be accessing my web server.

  • did not work, so was the URL on smartphone: 192.xx.56.3/PROJECTS/Portfoliocinza/index.html

  • 1

    The windows firewall must have blocked it, can simply disable it or create an exception for testing. And you don’t need to mask your ip to post here, because this ip is local, nobody can do anything with it. @Ricardohenrique

Browser other questions tagged

You are not signed in. Login or sign up in order to post.