GithubHelp home page GithubHelp logo

Comments (4)

jhen0409 avatar jhen0409 commented on May 7, 2024 1

Try this:

[Android 4.x] Use 10.0.3.2 instead of localhost on Genymotion:

import Reactotron from 'reactotron'
Reactotron.connect({
  server: '10.0.3.2',  // for Genymotion
  port: 3334,
  enabled: true
})

[Android 5.0+] just run command:

$ adb reverse tcp:3334 tcp:3334

from reactotron.

jhen0409 avatar jhen0409 commented on May 7, 2024 1

Is that IP always 10.0.3.2 for Genymotion?

Yes, it's different from the Android SDK emulator (10.0.2.2), and these are forward to localhost of host machine.

from reactotron.

skellock avatar skellock commented on May 7, 2024 1

Hmm... I wonder if there's a way to detect the runtime environment then in Android? Maybe auto set this up?

The part of the brain that's responsible for logic & self-preservation is yelling: NO! BAD IDEA! DON'T DO IT!

I'm going to dig a bit.

from reactotron.

skellock avatar skellock commented on May 7, 2024

Ya, on Android 4.x, it doesn't know how to reach back to your computer. Like @jhen0409 said, you'll have to enter your IP address just like you did for your packager. Thanks @jhen0409.

Is that IP always 10.0.3.2 for Genymotion?

from reactotron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.