SOCKS4_5 Dynamic Port Forwarding

Dynamic port forwarding is a method to forward a local network connection to an SSH server, where the destination host and port are automatically determined by the SOCKS protocol. Using dynamic port forwarding, Xshell can operate as a SOCKS proxy server.

To Add New Dynamic Port Forwarding Rule to a Session:

  1. Open the Sessions dialog box.
  2. Select a session for which to edit port forwarding rule.
  3. Click the standard [Properties] button.
  4. Select [Connection > SSH > Tunneling] from [Category].
  5. Open the Forwarding Rule dialog box by clicking [Add].
  6. Select Dynamic (SOCKS4/5) from [Type] list.
  7. Enter port number in [Listening Port] or select a service name. The SOCKS proxy server default port is 1080.
  8. Click [OK].
  • Note
    For dynamic port forwarding, the destination host and port do not need to be entered.