Comments (12)
Try forwarding that port with adb.
adb reverse tcp:9090 tcp:9090
from reactotron.
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.
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.
Still doesnt seem to work :(
from reactotron.
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.
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.
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.
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.
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.
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.
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.
@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)
- redux/toolkit + Reactotron leads to jest error "TypeError: _reactotronConfig.default.createEnhancer is not a function" HOT 1
- Simplify prettier config
- TypeScript errors
- Clearing State subscriptions
- console.log capturing starts not immediatelly
- Bunch of TS errors from reactotron-core-client in a fresh project HOT 5
- Replacing a plugin "redux-saga"
- Cannot delete undefined subscriptions
- Reactotron need highlights
- Question: Save Store/Load Store HOT 1
- Reactotron does not support `BigInt()` HOT 5
- Requiring unknown module "3392". If you are sure the module exists, try restarting Metro. You may also want to run `yarn` or `npm install`
- eactotron/no-tron-in-production not working with curly braces and new lines
- Confusing UI change between 2.17 and 3.7
- Reactrotron not showing redux store HOT 1
- From version reactotron-react-native 5.0.5 HOT 1
- Compiling JS failed: 803620:268:')' expected at end of parenthesized expression Buffer size 35514497 starts with: 766172205f5f42554e444c455f535441 HOT 5
- Add Social Preview to GitHub Settings
- ctrl+enter combo when creating a action dispatch
- Reactotron is empty when i click the timeline page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactotron.