AdbPortForward Method AndroidLib - Beatsleigher Edition
Forwards a port that remains until the current AndroidController instance is Disposed, or the device is unplugged

Namespace: RegawMOD.Android
Assembly: AndroidLib (in AndroidLib.dll) Version: 1.5.2.0 (1.5.2.0)
Syntax

public static bool PortForward(
	Device device,
	int localPort,
	int remotePort
)

Parameters

device
Type: RegawMOD.AndroidDevice
Instance of Device to apply port forwarding to
localPort
Type: SystemInt32
Local port number
remotePort
Type: SystemInt32
Remote port number

Return Value

Type: Boolean
True if successful, false if unsuccessful
Remarks

Only supports tcp: forward spec for now
See Also

Reference