Skip to content

Document how to access a local service through "localhost" #5

Open
@rigor789

Description

@rigor789

Accessing localhost depends on where the apps is running:

  • iOS Simulator -> can access localhost/127.0.0.1
  • Android emulator -> needs to use a special IP, often 10.2.2.0 (todo: fact-check and list common ips to try)
  • iOS Device -> needs to access an address accessible on the local network like 192.168.0.x or similar
  • Androud device -> same as iOS device.

Mention that cleartext traffic is blocked by default (silently), so http or ws requests will not work unless you specifically allow cleartext traffic:

Android:

<application
 <!-- ... -->
 android:usesCleartextTraffic="true"
 <!-- ... -->
</application>

ios?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions