Y
Y
yury_borisov72017-02-02 19:19:20
Java
yury_borisov7, 2017-02-02 19:19:20

What should be done to request a local server?

Hello everyone
How can android from a real device send requests to the localhost server something like primer.loc otherwise
I had to buy vps and do proxying, stupidly a request comes to my vps and I redirect it to my localhost
I don’t want to suffer, what can you advise ?
nginx web server

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yurii Nekrasov, 2017-02-09
@driversti

Why make it so difficult? Install the server on a VPS and access your application. If you want to access a local server from Android, on your home router, specify on which port your server hangs on the local computer and open this port to your Internet. Have you bought a VPS to proxy to your localhost?

Z
zoozag, 2017-09-04
@zoozag

Sometimes the same color goes several times in a row.
Make sure the color doesn't repeat.

K
Kovalsky, 2017-09-04
@lazalu68

This is a specificity of setInterval/Timeout - execution is guaranteed not exactly after N seconds, but not earlier than after N seconds.
PS: in JS, you can not put the $ symbol at the beginning of a variable name.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question