interface PortMapping {
    externalHost: string;
    externalPort: number;
    internalHost: string;
    internalPort: number;
    protocol: "TCP" | "UDP";
}

Properties

externalHost: string

The host that remote hosts can use to send packets to the mapped port

externalPort: number

The port that remote hosts can send packets to

internalHost: string

The internal host that will receive packets

internalPort: number

The internal port that will receive packets

protocol: "TCP" | "UDP"

The protocol that was mapped