Package edu.wpi.first.util.net
Class PortForwarder
java.lang.Object
edu.wpi.first.util.net.PortForwarder
public final class PortForwarder extends Object
Forward ports to another host. This is primarily useful for accessing Ethernet-connected devices
from a computer tethered to the RoboRIO USB port.
-
Method Details
-
add
Forward a local TCP port to a remote host and port. Note that local ports less than 1024 won't work as a normal user.- Parameters:
port
- local port numberremoteHost
- remote IP address / DNS nameremotePort
- remote port number
-
remove
Stop TCP forwarding on a port.- Parameters:
port
- local port number
-