Skip to content

Instantly share code, notes, and snippets.

@connself
Created January 17, 2021 10:30
Show Gist options
  • Save connself/4498b1d1577e3df254538c3d015a7a69 to your computer and use it in GitHub Desktop.
Save connself/4498b1d1577e3df254538c3d015a7a69 to your computer and use it in GitHub Desktop.
netsh命令监听IP(可实现IIS、nginx共用80端口)
:: 显示监听的IP列表
netsh http show iplisten
:: 添加监听IP
netsh http add iplisten ipaddress=127.0.0.1
:: 删除监听IP
netsh http delete iplisten 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment