M
M
Mikhail2018-02-23 18:31:47
Android
Mikhail, 2018-02-23 18:31:47

Why can't nox emulator see localhost?

I start the server through the "react-native start" command.
I type in the browser "127.0.0.1:8081" everything is ok.
I type the same thing in the emulator browser, but it's not ok anymore.
Writes that the page does not exist.
And there is only one network ...
Of course, I could run react native on my device, but the problem is that there is no wifi.
There are various problems with other emulators.
Genymotion - problems in virtualbox (reinstalled versions)
AVD - After loading the android, just a black screen. (Android 5)
And on android 8, the download is eternal.
I am currently trying bluestacks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Atlllantis, 2018-02-23
@TheMaxai

Because localhost is separate for the emulator and the system on which it is running.
You need to contact by the IP of the system (on which the emulator is running) - if from the emulator, and by the IP network assigned to the emulator - if from the system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question