Windows uses commands to open the port of a firewall

Source: Internet
Author: User

Open TCP Port in Windows Firewall Using Netsh [McNeel Wiki]
Https://wiki.mcneel.com/zoo/zoo5netsh

Refer to my written Oracle XE Remote access-a little white-blog Park http://www.cnblogs.com/startnow/p/7771535.html#autoid-0-1-0

========================= Turn =====================

Open TCP Port in Windows Firewall Using Netsh
Product: Zoo
Summary: Using Netsh to open Zoo required TCP Port

Zoo communicates with Rhino clients via TCP Port (HTTP).

After installing the Zoo, your need to ensure, TCP Port, open for both incoming and outgoing communicatio NS in the firewall software running on the Zoo server system.

Note, by default TCP Port was open for outgoing communications in the most firewall software. You should not has the to open any ports in the firewall software running on Rhino workstations.

More information

Netsh is a Windows command-line scripting utility for you to, either locally or remotely, display or change the n Etwork configuration of a computer that is currently running.

Netsh also provides a scripting feature to run a group of commands in batch mode against a specified computer.

Netsh can be used, instead of the Firewall applets in the Control Panel, to automate the opening of required of TCP/IP ports.

It is possible to open these ports on the Window Firewall using Netsh. The syntax is different depending on whether or not if you are using Windows XP or Windows Server, Windows Vista, or GRE Ater.

Windows XP

Important: If you is a member of the Administrators group, run the commands from a command prompt. To start a command prompt, find the icon or Start menu entry this you use to start a command prompt session.

REM Open TCP port 80netsh Firewall add portopening TCP "Zoo TCP port 80"
Windows Server, Windows Vista, or greater

Important: If you were a member of the Administrators group, and the User account Control was enabled on your computer, run the commands fr Om a command prompt with elevated permissions. To start a command prompt with elevated permissions, find the icon or Start menu entry this you use to start a command pro MPT session, right-click it, and then click Run as Administrator.

REM Open TCP port inbound and Outboundnetsh advfirewall Firewall add rule name= "Zoo TCP port" dir=in Action=allow PR OTOCOL=TCP localport=80netsh advfirewall Firewall add rule name= "Zoo TCP Port" Dir=out action=allow protocol=tcp Localp Ort=80
Reference

How to use the "netsh advfirewall firewall" context.

Windows uses commands to open the port of a firewall

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.