IP Port Forward changes the remote IP address and port that an application connects to.

It serves a similar purpose to hosts files and forwarding rules such as Linux iptables or Windows netsh port forwarding.

It was developed for game server debugging.

Why It Was Built

During game server development, I sometimes needed to test against a different server.

For example, I needed to connect the same client to a local or internal server without changing the client.

This also came up when testing builds that used third-party SDKs.

An IP and port rule let me debug the connection without requesting a separate client build.

Features

  • Process settings
    • All processes
    • Specific processes
  • IP settings
    • Specific IP addresses
    • Any IP
    • Bitmask support
  • Port settings
    • Specific ports
    • Any Port
    • Port range support

IP Port Forward and Hosts + Netsh

The LSP implementation has stability and compatibility limitations.

  IP Port Forward Hosts + Netsh
Setup difficulty Moderate Advanced
IP address support O X
Domain support X O
UDP support X O
Per-process rules O X
WSL and Docker compatibility X O
Change settings while running O △ (May require an app restart)
Implementation LSP (Dll Injection) Windows settings

Demo

The video demonstrates redirecting a connection from 1.1.1.1 to 127.0.0.1.

Requirements

  • Windows 10, 11
  • 64bit (AMD64)
  • Visual C++ Runtime (2015-2022)

Technologies

  • LSP (Layered Service Provider)

Known Issues

  • WSL is incompatible with this and other LSP-based applications.
  • Apps that reuse sockets may behave unexpectedly.
    Restarting the affected app may restore the connection.

Installation

  1. Extract the downloaded archive.
  2. Run IPPrtFwdMain.exe.
  3. Add your rules.
  4. Open Options.
  5. Run Install.

Troubleshooting

  • Connection problems
    1. Run IPPrtFwdMain.exe.
    2. Open Options.
    3. Uninstall
    4. Restart Windows.
    * If a tool such as SQL Server Management Studio has trouble connecting, try restarting that tool.
  • Resetting LSP configuration
    1. Open Command Prompt as an administrator.
    2. netsh winsock reset
    3. Restart Windows.
    * This also resets other LSP-based applications, such as ProxyCap. Reinstall those applications after the reset.