A
A
Almik Oh! Give me a guitar2015-08-13 19:07:20
Apache HTTP Server
Almik Oh! Give me a guitar, 2015-08-13 19:07:20

How to view the site from a phone if the site is on a laptop with url = 127.0.0.1?

Hello!
In general, there is a ready site on a laptop . I need to test how the site works on smartphones and tablets. Of course, there are special tools on the browser to see how the site looks on one device or another.
But the point is that touch events are overlooked. I need to access a site located on a laptop from a smartphone. Moreover , the site is local.
What is
1) a laptop, a smartphone with a mini usb wire
2) a wifi router
The first thing that comes to mind is to create a wifi network on a laptop and somehow shove a smartphone there. But how?
I would be grateful to those who point me in the right direction,
Thanks everyone!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
B
bukass, 2015-08-13
@almyk

Your laptop and smartphone are connected to the Internet through a router, are in the same local area network. For example, the laptop receives the address 192.168.1.100 - the site will be there.

O
osj, 2015-08-13
@osj

https://ngrok.com/

N
NullxWeight, 2015-08-14
@NullxWeight

I see no reason to bother with the development of a crutch. I would advise you to equip apache (XAMP, LAMP, MAMP) on a laptop and turn it into your "pocket" server with blackjack and bat files. So you can ask friends with smartphones of other manufacturers, sizes and nationalities to also look at your work.
However, if you don’t want to fool around with installing and debugging MySQL, apache, PHP + phpadmin, although for a web developer this is perhaps the first test of strength (I once got so confused that I lost all desire to repeat it), then for a lot it will be easier to host your site on a free hosting .
After a simple registration and familiarization with the FTP client ( FileZilla, for example) for your hosting (again, an integral part of the life of a web developer) After 30 minutes from reading this post, you can share a link to your site with us and test everything together;)

I
Ivan, 2015-08-13
@LiguidCool

You do have a router. Connect the laptop with a wire to the router, register a static IP on the laptop. From the phone you go on Wi-Fi and drive in the IP of the laptop into the address.
But in general it's easier to use browser debugging or an emulator .

M
Maxim, 2015-08-13
@Qumbeez

If anything, you can distribute Wi-fi from a laptop with the program www.mywifirouter.me/. And as soon as you distribute it, you will get access to the site on your phone!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question