Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set reactotron default host without using code #940

Closed
rady-ben opened this issue Mar 21, 2019 · 5 comments
Closed

set reactotron default host without using code #940

rady-ben opened this issue Mar 21, 2019 · 5 comments
Labels
need info ⏳ We need more information about this. question 🤷‍♀️ Inquiries, suggestions, and general help.

Comments

@rady-ben
Copy link

I install reactotron on my Ubuntu 18.04.2 LTS, I am using
"react-native": "0.58.5"
"reactotron-react-native": "2.2.0"
the first time when reactotron didn't connect to my react native application with this configuration.

const reactotron = Reactotron.configure().useReactNative().connect()

I looked for solution on and I found that I have to add my IP address like this

const reactotron = Reactotron.configure({ host: My_IP_Adress' }).useReactNative().connect()

it work but the problem is that I am working with a team so I have to modify the reactotron.config.js before any push and it annoying me so I am looking for solution without updating my reactotron.config.js .
someone can help
thank you

@rady-ben rady-ben changed the title set reactotron host without using code set reactotron default host without using code Mar 21, 2019
@rmevans9
Copy link
Collaborator

Is this a simulator or real device?

@kevinvangelder
Copy link
Member

With simulator/emulator, you should be able to just set host to 127.0.0.1, though I suppose we could add that as a fallback if no host is provided.

@rady-ben
Copy link
Author

rady-ben commented Apr 6, 2019

@kevinvangelder thank u doesn't work.
I found an other solution, just run adb reverse tcp:9090 tcp:9090 on the terminal and it work
#431

@rmevans9 rmevans9 added need info ⏳ We need more information about this. question 🤷‍♀️ Inquiries, suggestions, and general help. labels Apr 7, 2019
@kevinvangelder
Copy link
Member

@rady-ben Correct me if I'm wrong, but it sounds like Reactotron does correctly connect to localhost when no host is provided, you just have to follow the normal process of running adb reverse tcp:9090 tcp:9090 in order for it to connect.

While this isn't ideal, it is the currently expected behavior. Please note you will need to rerun that command any time you restart your emulator or reconnect a physical device.

@ninjz
Copy link

ninjz commented Jan 29, 2020

There's a great answer here #272 (comment) from @mkubliniak to get this working.

joshuayoes pushed a commit that referenced this issue Feb 1, 2023
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need info ⏳ We need more information about this. question 🤷‍♀️ Inquiries, suggestions, and general help.
Projects
None yet
Development

No branches or pull requests

4 participants