GithubHelp home page GithubHelp logo

Comments (12)

skellock avatar skellock commented on May 7, 2024 454

Try forwarding that port with adb.

adb reverse tcp:9090 tcp:9090

from reactotron.

xemasiv avatar xemasiv commented on May 7, 2024 47

can confirm

run adb reverse tcp:9090 tcp:9090 to forward port
run adb reverse --list to ensure it's there

add the ff code (if tethering, you can also use an specific IP address)

  Reactotron
    .configure({
      host: 'localhost' // added code
    })
    // ...
    .connect()

now it works

from reactotron.

miltonbo avatar miltonbo commented on May 7, 2024 16

I am using the Android Emulator and I had to configure Proxy settings in my emulator to access my local server, now I put the same IP address to configure and now it is working.

import Reactotron from 'reactotron-react-native'

Reactotron
.configure({
    host: '10.0.2.2'
}) // controls connection & communication settings
.useReactNative() // add all built-in react native plugins
.connect()

from reactotron.

justingosan avatar justingosan commented on May 7, 2024 3

Still doesnt seem to work :(

from reactotron.

justingosan avatar justingosan commented on May 7, 2024 2

Okay so I moved my workspace to my Macbook and everything seems to be working fine (even specifying host with adb via wifi). Not so sure what's up with my iMac but I will investigate for a fix. Thanks again for your help!

from reactotron.

justingosan avatar justingosan commented on May 7, 2024 1

I'll have my reply up first thing tomorrow morning! Give or take in the
next 12 hours 😄 thanks for all your help so far!

On Thu, Aug 25, 2016, 12:02 AM Steve Kellock [email protected]
wrote:

Alright, I tested again here, and I'm having problems reproducing. Here's
my setup:

Mac OS X. Latest Reactotron.app launched. Android 6.x on a Nexus 7 (2013).
Tethered and on local wifi. I'm no configuration options (so just the
defaults). And I had to adb reverse tcp:9090 tcp:9090 to open up.

No problems.

What kind of setup do you have there?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#162 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA5m-8j7r3dXpLdXl4vu766-EfhIUDS4ks5qjGsYgaJpZM4Jroak
.

from reactotron.

skellock avatar skellock commented on May 7, 2024

Even with your host left to localhost and that adb port forward? Thats odd. Will take a look first thing in the AM. You will have justice!

from reactotron.

skellock avatar skellock commented on May 7, 2024

Btw, that line should read Reactotron.configure().connect(). The only thing you might need is configure({host: '192.168.1.200'}) but thats only if you arent tethered. The port is default and enabled isnt a thing anymore. :)

from reactotron.

justingosan avatar justingosan commented on May 7, 2024

Ah yes that was a typo on my part here. :)

I tried Reactotron.configure().connect() while tethered and with the adb port forward and also with .configure({host: '192.168.1.200'}) while using adb connect via wifi just now. Both times still wouldn't connect to the desktop or cli client from the phone :(

Is there any way I can turn on Reactotron debug logs so I can provide more info?

from reactotron.

skellock avatar skellock commented on May 7, 2024

Under node_modules/reactotron-core-client/dist/index.js in your project directory, you'll find the connection code. You can hack around in there.

Is the new Reactotron running? The old one was on a different port fwiw.

Are you able to connect fine from an android emulator? Are you on Windows?

from reactotron.

skellock avatar skellock commented on May 7, 2024

Alright, I tested again here, and I'm having problems reproducing. Here's my setup:

Mac OS X. Latest Reactotron.app launched. Android 6.x on a Nexus 7 (2013). Tethered and on local wifi. I'm no configuration options (so just the defaults). And I had to adb reverse tcp:9090 tcp:9090 to open up.

No problems.

What kind of setup do you have there?

from reactotron.

notmarinho avatar notmarinho commented on May 7, 2024

@miltonbo answer worked for me on android but stoped on iOS. To work on both, only do this logic:

Reactotron
  .configure({
    host:  Platform.OS === 'android' ? '10.0.2.2' : 'localhost',
  })

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.