Opening ports for a specific IP

Tim 21 Reputation points
2021-10-04T00:45:31.79+00:00

My server has 2 IPs configured on it. I want to open port 80 for IP #1 and open port 3306 for IP #2. How can I configure the firewall for this?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,184 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dave Patrick 426.1K Reputation points MVP
    2021-10-04T01:34:36.377+00:00

    You can create two custom rules (example)

    137210-image.png

    137228-image.png

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Limitless Technology 39,381 Reputation points
    2021-10-04T10:45:30.667+00:00

    Hi there,

    To allow inbound network traffic on only a specified TCP or UDP port number, use the Windows Defender Firewall with Advanced Security node in the Group Policy Management MMC snap-in to create firewall rules. This type of rule allows any program that listens on a specified TCP or UDP port to receive network traffic sent to that port.
    This might help you out
    https://learn.microsoft.com/en-us/windows/security/threat-protection/windows-firewall/create-an-inbound-port-rule

    ------------------------------------------------------------------------------------------------------------------------------

    If the reply is helpful, please Upvote and Accept it as an answer

    0 comments No comments