React-native-debugger: How to change default port

Created on 5 Jul 2018  路  8Comments  路  Source: jhen0409/react-native-debugger

React Native Debugger app version: [0.7.18]
React Native version: [0.55]
Platform: [ Android, ...]
Is real device of platform: [No]
Operating System: [FILL THIS OUT: Linux,]

How to change default port... my computer use 19002 port but this default port is 19001

thanks

question

Most helpful comment

Read docs...

"RNDebugger will try connect to debugger proxy, use port 8081 by default, you can new debugger window (macOS: Command+T, Linux/Windows: Ctrl+T) to specify the port if you want."

What if I don't want to do that every time I open the app? I want some setting where I can specify on what port debugger should start when I launch it.

Edit: actually I found the setting: defaultRNPackagerPorts.

All 8 comments

It should be explained by the documentation, you can change port by New Window, or just use react-native-debugger-open.

sorry cannot find where to change default port on doc
what i find is open new tab / windows and yes confirmed to input new port NOT change default password on the first tab / windows of this tools

same issue here, this should be opened

Read docs...

"RNDebugger will try connect to debugger proxy, use port 8081 by default, you can new debugger window (macOS: Command+T, Linux/Windows: Ctrl+T) to specify the port if you want."

Read docs...

"RNDebugger will try connect to debugger proxy, use port 8081 by default, you can new debugger window (macOS: Command+T, Linux/Windows: Ctrl+T) to specify the port if you want."

What if I don't want to do that every time I open the app? I want some setting where I can specify on what port debugger should start when I launch it.

Edit: actually I found the setting: defaultRNPackagerPorts.

found a solution :
in XCODE project settings, add a user setting : RCT_METRO_PORT which will change the default port used. If you build with react-native cli, use the --port 666 arguments

Control + T in the React Native Debugger windows, and change the port.

command+T in the react native debugger window in mac os and change the port

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DenJohX picture DenJohX  路  3Comments

usrbowe picture usrbowe  路  6Comments

Mathieuka picture Mathieuka  路  3Comments

danilobuerger picture danilobuerger  路  4Comments

Clete2 picture Clete2  路  5Comments