computerlady143

Well-Known Member
Joined
Jun 7, 2010
Messages
14
I know somebody that have remote desktop setup and instead of using and static IP address for each computer. They are using one IP address and a different port for each computer. I know that the port number is defined in each registry. They are using DHCP and the address for each computer is obtained automatically. What command would you use to redirect the DHCP IP address to the static IP Address? I know somebody doing this and they are using a rule in the firewall for the port number. Do you set up the redirect in the firewall rules also? Curious to know how this is being done. The server operating system is Windows Server 2008, workstations software is Windows 7, Windows XP.
 

Last edited:
Solution
Redirecting DHCP-assigned IP addresses to static IP addresses on Windows systems like Windows Server 2008 and Windows 7/XP can be achieved through Network Address Translation (NAT) or port forwarding settings on the firewall. Here are the steps to redirect DHCP IP addresses to static IP addresses and set up firewall rules for port-based redirection:

Redirecting DHCP IP Addresses to Static IP Addresses:​

  1. Assigning Static IP Addresses:
    • Configure static IP addresses on the target computers to assign specific IP addresses to each computer.
    []Setting up DHCP Reservations:
    • Create DHCP reservations in the DHCP server (Windows Server 2008) to ensure that specific IP addresses are always assigned to...
Redirecting DHCP-assigned IP addresses to static IP addresses on Windows systems like Windows Server 2008 and Windows 7/XP can be achieved through Network Address Translation (NAT) or port forwarding settings on the firewall. Here are the steps to redirect DHCP IP addresses to static IP addresses and set up firewall rules for port-based redirection:

Redirecting DHCP IP Addresses to Static IP Addresses:​

  1. Assigning Static IP Addresses:
    • Configure static IP addresses on the target computers to assign specific IP addresses to each computer.
    []Setting up DHCP Reservations:
    • Create DHCP reservations in the DHCP server (Windows Server 2008) to ensure that specific IP addresses are always assigned to specific MAC addresses. This effectively makes the DHCP-assigned IP addresses "static."
    [
    ]NAT or Port Forwarding Configuration:
    • Configure NAT or port forwarding rules on the network gateway/router to redirect traffic based on ports to the respective computers using their static IP addresses.

      Firewall Configuration for Port-Based Redirection:​

    • To allow traffic flow based on port numbers, firewall rules need to be set up to permit incoming connections on the specific ports and direct them to the correct internal IP addresses.

Steps to Configure Firewall Rules:​

  1. Accessing Windows Firewall:
    • Open the Windows Firewall settings on the Windows Server 2008 or respective workstations.
    []Creating Inbound Rules:
    • Create inbound rules that allow traffic on the required ports. This can be done by specifying the port numbers used by each computer for remote desktop access.
    [
    ]Defining Port Forwarding:
    • Map each port to the corresponding internal IP address of the specific computer to ensure the traffic reaches the correct destination.

      Command for Redirection:​

    • To create port redirection using netsh command on Windows Server 2008, you can use the following syntax:
      Code:
       netsh interface portproxy add v4tov4 listenport= listenaddress= connectport= connectaddress=
      • Replace , , , and with the appropriate values.

        Final Considerations:​

        • Ensure that the firewall rules are correctly set up to allow traffic on the specified ports.
        • Regularly review and maintain the port forwarding rules to ensure they remain accurate and secure.
        Configuring these settings will effectively redirect incoming traffic from DHCP-assigned IP addresses to the corresponding static IP addresses based on the port numbers defined for each computer.
 

Solution
Back
Top