reactotron: Not Connecting
i’m on linux(ubuntu 16.04) trying to debug on a physical device and

this is all i get. It just doesn’t connect. Is there something i’m doing wrong?
index.android.js
import { AppRegistry, StatusBar } from 'react-native';
import Reactotron from 'reactotron-react-native';
import './src/lib/Reactotron';
import colors from './src/components/styles/colors';
import setup from './src/setup';
Reactotron.log('hello rendering world');
if (!__DEV__) {
console.log = () => {};
}
StatusBar.setBackgroundColor(colors.primaryDark);
AppRegistry.registerComponent('sfa', setup);
src/lib/Reactotron
import Reactotron from 'reactotron-react-native';
import { reactotronRedux } from 'reactotron-redux';
Reactotron
.configure()
.use(reactotronRedux())
.useReactNative()
.connect();
configureStore.js
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import Reactotron from 'reactotron-react-native';
import devTools from 'remote-redux-devtools';
import { persistStore, autoRehydrate } from 'redux-persist';
import { AsyncStorage } from 'react-native';
import reducers from './reducers';
const configureStore = (onComplete = false) => {
const middlewares = [thunk];
const enhancers = [
applyMiddleware(...middlewares),
autoRehydrate(),
];
if (__DEV__) {
enhancers.push(devTools());
}
const store = Reactotron.createStore(reducers, undefined, compose(...enhancers));
if (onComplete) {
persistStore(store, { storage: AsyncStorage }, () => setTimeout(onComplete, 500));
}
persistStore(store, { storage: AsyncStorage, blacklist: ['AppState'] });
return store;
};
export default configureStore;
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (6 by maintainers)
Commits related to this issue
- chore(deps): update dependency eslint-config-standard to v15 (#431) Co-authored-by: Renovate Bot <bot@renovateapp.com> — committed to infinitered/reactotron by renovate[bot] 4 years ago
- chore(deps): update dependency eslint-plugin-import to v2.21.0 (#431) Co-authored-by: Renovate Bot <bot@renovateapp.com> — committed to infinitered/reactotron by renovate[bot] 4 years ago
- chore(deps): update typescript-eslint monorepo to v3.4.0 (#431) Co-authored-by: Renovate Bot <bot@renovateapp.com> — committed to infinitered/reactotron by renovate[bot] 4 years ago
- chore(deps): update babel monorepo to v7.11.0 (#431) Co-authored-by: Renovate Bot <bot@renovateapp.com> — committed to infinitered/reactotron by renovate[bot] 4 years ago
I have found that you can avoid doing the host change (at least in genymotion) if you do
adb reverse tcp:9090 tcp:9090Your device needs to talk to your computer.
You’ll want to
Reactotron.configure({ host: '192.168.0.2' })in yourReactotronConfig.js(or wherever your computer’s local network address might be.I even can’t connect to reactotron. If I point the Browser to my Address (where Reactotron runs) to port 9090, I only see a message:
Upgrade RequiredAnd in Developer-Console of the Browser I see:
Failed to load resource: the server responded with a status of 426 (Upgrade Required)I use Reactotron 2.1.2-1
For me, I can connect to reactotron-cli but no connection to the Reactotron App
I have to manually pass the IP of my machine as the host to get Reactotron V2 to detect Android Emulators as in @skellock suggestion.
The
adb reverse tcp:9090 tcp:9090did nothing for me.Thanks @rynatk and @skellock … Adding ip solved the issue, It took me 5 hours just to make it work 😕 …
By the way if this is an issue why the devs are not trying to resolve it ?? Or is it related to some specific situations ??
Still, reactotron is my discovery of the month ! 👍
In your
.configure()call, you can pass the ip address too:.configure({ host: '192.168.0.x' })Try adding that while initialization itself. That solved the issue for me.
eg. - Reactotron .configure({ host: ‘172.16.18.13’, // server ip }) .useReactNative() .connect();