Files
flipper/docs/custom-ports.mdx
Chaytanya Sinha cfcb6837d1 Updated custom-ports.mdx (#1406)
Summary:
Usually ':' is used before the command

Usually while presenting a command ':' is used instead of that '.' was used.

Pull Request resolved: https://github.com/facebook/flipper/pull/1406

Reviewed By: jknoxville

Differential Revision: D22766378

Pulled By: passy

fbshipit-source-id: 6811f36262a5520db3afddbe68afa492831f48f2
2020-07-27 09:33:14 -07:00

24 lines
749 B
Plaintext

---
id: custom-ports
title: Running Flipper with different ports
sidebar_label: Using different ports
---
By default Flipper runs its servers on ports 8088 and 8089, and the mobile SDKs look for servers on those ports.
Each of these can be overridden by setting an environment variable, with the format `${INSECURE_PORT},${SECURE_PORT}`.
To run the desktop app using custom ports:
```
FLIPPER_PORTS=1111,2222 ./flipper
```
To configure the Android SDK for custom ports, set the `flipper.ports` prop to your chosen ports `1111,2222` like so, and then launch the Android app:
```
adb shell su 0 setprop flipper.ports 1111,2222
```
To configure the iOS SDK for custom ports, set the FLIPPER_PORTS environment variable in your app launch script.