zoukankan      html  css  js  c++  java
  • windows 使用命令打开防火墙的端口

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

    参考我写的 oracle xe远程访问 -手动打开防火墙1521端口- 一支小白 - 博客园 http://www.cnblogs.com/startnow/p/7771535.html#autoid-0-1-0

    =========================转=====================

    Open TCP Port 80 in Windows Firewall Using Netsh

    Product: Zoo
    Summary: Using Netsh to open Zoo required TCP Port 80

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

    After installing the Zoo, you need to ensure that TCP Port 80 is open for both incoming and outgoing communications in the firewall software running on the Zoo server system.

    Note, by default TCP Port 80 is open for outgoing communications in most firewall software. You should not have 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 network 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 applet in the Control Panel, to automate the opening of required 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 you are using Windows XP or Windows Server 2008, Windows Vista, or greater.

    Windows XP

    Important: If you are 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 that you use to start a command prompt session.

    rem Open TCP Port 80
    netsh firewall add portopening TCP 80 "Zoo TCP Port 80"

    Windows Server 2008, Windows Vista, or greater

    Important: If you are a member of the Administrators group, and User Account Control is enabled on your computer, run the commands from a command prompt with elevated permissions. To start a command prompt with elevated permissions, find the icon or Start menu entry that you use to start a command prompt session, right-click it, and then click Run as administrator.

    rem Open TCP Port 80 inbound and outbound
    netsh advfirewall firewall add rule name="Zoo TCP Port 80" dir=in action=allow protocol=TCP localport=80
    netsh advfirewall firewall add rule name="Zoo TCP Port 80" dir=out action=allow protocol=TCP localport=80

    Reference

  • 相关阅读:
    Python-爬取小说内容并下载
    Python-网易音乐下载
    [Python图像处理]六.图像缩放,图像旋转,图像翻转与图像平移
    [Python图像处理]五.图像加法运算,图像融合及图像类型转换
    [Python图像处理]四.图像平滑中四种常用的滤波
    go语言-从控制套获取用户输入
    go语言-运算符
    go语言-指针
    go语言-数据类型及类型之间转换
    go语言-变量与常量
  • 原文地址:https://www.cnblogs.com/startnow/p/7771482.html
Copyright © 2011-2022 走看看