Skip to content

Port forwarding to host #30

@snaike00

Description

@snaike00

I encountered a situation where needed to forward ports from Android to Host.
To solve this, you need to enter the container (Linux) and run the following commands:

  1. adb forward tcp:3128 tcp:3128
  2. socat tcp-listen:3128,bind=YOUR_CONTAINER_LINUX_IP,fork tcp:127.0.0.1:3128

In this example, we successfully forwarded port 3128 (TCP) on dockerify-android:27-08-25

@Shmayro Please add environment variables (-e or --env) for simple port forwarding. This will be much simpler and easier for users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions