How can i open correct ports on windows firewall for apache instead of using all?

  1. Open 'Windows Firewall with Advanced Security'
  2. Go to 'Inbound Rules'
  3. 'New Rule...'
  4. 'Port'
  5. 'TCP', 'Specific Local Ports', enter '8085, 8086' in the text field
  6. 'Allow the connection'
  7. Choose zones where this rule applies
  8. Enter the rule name and a description if desired

Done.