我们可以用哪个端口来运行80以外的IIS?

时间:2022-11-19 10:03:27

IIS does not work when I start applications like Skype since it also uses port 80.

当我启动像Skype这样的应用程序时IIS不起作用,因为它也使用端口80。

Which port can I use to run IIS other than 80? (8080 does not work)

我可以使用哪个端口来运行除80以外的IIS? (8080不起作用)

8 个解决方案

#1


42  

You can run IIS on any port you like, as long as it does not conflict with other applications. I am using 88, 8888 and other easy to remember ports.

您可以在任何您喜欢的端口上运行IIS,只要它不与其他应用程序冲突即可。我正在使用88,8888和其他易于记忆的端口。

You can find the common used port here: PORT NUMBERS, and it is safer to choose an unassigned TCP port.

您可以在此处找到常用的端口:PORT NUMBERS,选择未分配的TCP端口更安全。

Quote:

The Dynamic and/or Private Ports are those from 49152 through 65535

动态和/或专用端口是49152到65535的端口

If IIS is working and you have troubles with an ASP.NET applications, those links might be helpful:

如果IIS正在运行并且您在使用ASP.NET应用程序时遇到麻烦,那么这些链接可能会有所帮助:

If you are still having troubles, it would be helpful to provide more information about your environment, the steps taken so far to solve the problem, and retagging the question (append asp.net for example)

如果您仍然遇到麻烦,那么提供有关您的环境的更多信息,到目前为止为解决问题所采取的步骤以及重新提出问题(例如附加asp.net)将会很有帮助

#2


19  

Well you can disable skype to use port 80. Click tools --> Options --> Advanced --> Connection and uncheck the appropriate checkbox. 我们可以用哪个端口来运行80以外的IIS?

那么您可以禁用Skype以使用端口80.单击工具 - >选项 - >高级 - >连接并取消选中相应的复选框。

#3


6  

Port 8080 might have been used by another process in your computer.

端口8080可能已被计算机中的其他进程使用。

Do netstat in command prompt to find out which server/process is using it.

在命令提示符下执行netstat以找出正在使用它的服务器/进程。

Have a look at this page (http://en.wikipedia.org/wiki/Port_number) it gives you full explanation on how to use port number

看看这个页面(http://en.wikipedia.org/wiki/Port_number),它为您提供了如何使用端口号的完整说明

#4


5  

Also remember, when running on alternate ports, you need to specify the port on the URL:

还要记住,在备用端口上运行时,需要在URL上指定端口:

http://www.example.com:8080

There may be firewalls or proxy servers to consider depending on your environment.

根据您的环境,可能需要考虑防火墙或代理服务器。

#5


1  

you can configure IIS in IIS Mgr to use EVERY port between 1 and 65535 as long it is not used by any other application

您可以在IIS Mgr中配置IIS以使用1到65535之间的每个端口,只要它不被任何其他应用程序使用

#6


1  

Stopping Skype from using port 80: http://forum.skype.com/lofiversion/index.php/t15582.html

阻止Skype使用端口80:http://forum.skype.com/lofiversion/index.php/t15582.html

#7


1  

I'm going to make a few assumptions and come at the problem from a different angle... in that because you have skype installed and running on the same machine, that it is not a production machine and instead used for testing / development?

我将做一些假设并从另一个角度解决问题...因为你在同一台机器上安装并运行了skype,它不是生产机器而是用于测试/开发?

If so, you may wish to look at alternatives to IIS completely to alleviate your issue. If you use IISExpress or the web server built into recent versions of Visual Studio, they will automatically pick a port for you.

如果是这样,您可能希望完全查看IIS的替代方案以缓解您的问题。如果您使用IISExpress或最新版本的Visual Studio中内置的Web服务器,它们将自动为您选择一个端口。

Of course this does mean that it's not particularly useful for giving other people access, but is fine for local development for personal use.

当然,这确实意味着它对于让其他人访问并不是特别有用,但对于个人使用的本地开发来说是好的。

I think the other answers probably offer a better alternative in most situations, but this may offer a different insight.

我认为其他答案可能在大多数情况下提供更好的选择,但这可能会提供不同的见解。

Here is an intro to IIS Express: http://learn.iis.net/page.aspx/860/iis-express/

以下是IIS Express简介:http://learn.iis.net/page.aspx/860/iis-express/

#8


0  

You have to configure the port first for example 127.0.0.1:91 then you need to allow access to port 91 from windows firewall->>advance setting->>inbound rules->> new rule. then check port->> assign new port (91). then next to finished. After this 127.0.0.1:91 should be accessible from the web.

您必须首先配置端口,例如127.0.0.1:91,然后您需要允许从Windows防火墙访问端口91 - >>高级设置 - >>入站规则 - >>新规则。然后检查端口 - >>分配新端口(91)。然后在旁边完成。在此之后,应该可以从网*问127.0.0.1:91。

#1


42  

You can run IIS on any port you like, as long as it does not conflict with other applications. I am using 88, 8888 and other easy to remember ports.

您可以在任何您喜欢的端口上运行IIS,只要它不与其他应用程序冲突即可。我正在使用88,8888和其他易于记忆的端口。

You can find the common used port here: PORT NUMBERS, and it is safer to choose an unassigned TCP port.

您可以在此处找到常用的端口:PORT NUMBERS,选择未分配的TCP端口更安全。

Quote:

The Dynamic and/or Private Ports are those from 49152 through 65535

动态和/或专用端口是49152到65535的端口

If IIS is working and you have troubles with an ASP.NET applications, those links might be helpful:

如果IIS正在运行并且您在使用ASP.NET应用程序时遇到麻烦,那么这些链接可能会有所帮助:

If you are still having troubles, it would be helpful to provide more information about your environment, the steps taken so far to solve the problem, and retagging the question (append asp.net for example)

如果您仍然遇到麻烦,那么提供有关您的环境的更多信息,到目前为止为解决问题所采取的步骤以及重新提出问题(例如附加asp.net)将会很有帮助

#2


19  

Well you can disable skype to use port 80. Click tools --> Options --> Advanced --> Connection and uncheck the appropriate checkbox. 我们可以用哪个端口来运行80以外的IIS?

那么您可以禁用Skype以使用端口80.单击工具 - >选项 - >高级 - >连接并取消选中相应的复选框。

#3


6  

Port 8080 might have been used by another process in your computer.

端口8080可能已被计算机中的其他进程使用。

Do netstat in command prompt to find out which server/process is using it.

在命令提示符下执行netstat以找出正在使用它的服务器/进程。

Have a look at this page (http://en.wikipedia.org/wiki/Port_number) it gives you full explanation on how to use port number

看看这个页面(http://en.wikipedia.org/wiki/Port_number),它为您提供了如何使用端口号的完整说明

#4


5  

Also remember, when running on alternate ports, you need to specify the port on the URL:

还要记住,在备用端口上运行时,需要在URL上指定端口:

http://www.example.com:8080

There may be firewalls or proxy servers to consider depending on your environment.

根据您的环境,可能需要考虑防火墙或代理服务器。

#5


1  

you can configure IIS in IIS Mgr to use EVERY port between 1 and 65535 as long it is not used by any other application

您可以在IIS Mgr中配置IIS以使用1到65535之间的每个端口,只要它不被任何其他应用程序使用

#6


1  

Stopping Skype from using port 80: http://forum.skype.com/lofiversion/index.php/t15582.html

阻止Skype使用端口80:http://forum.skype.com/lofiversion/index.php/t15582.html

#7


1  

I'm going to make a few assumptions and come at the problem from a different angle... in that because you have skype installed and running on the same machine, that it is not a production machine and instead used for testing / development?

我将做一些假设并从另一个角度解决问题...因为你在同一台机器上安装并运行了skype,它不是生产机器而是用于测试/开发?

If so, you may wish to look at alternatives to IIS completely to alleviate your issue. If you use IISExpress or the web server built into recent versions of Visual Studio, they will automatically pick a port for you.

如果是这样,您可能希望完全查看IIS的替代方案以缓解您的问题。如果您使用IISExpress或最新版本的Visual Studio中内置的Web服务器,它们将自动为您选择一个端口。

Of course this does mean that it's not particularly useful for giving other people access, but is fine for local development for personal use.

当然,这确实意味着它对于让其他人访问并不是特别有用,但对于个人使用的本地开发来说是好的。

I think the other answers probably offer a better alternative in most situations, but this may offer a different insight.

我认为其他答案可能在大多数情况下提供更好的选择,但这可能会提供不同的见解。

Here is an intro to IIS Express: http://learn.iis.net/page.aspx/860/iis-express/

以下是IIS Express简介:http://learn.iis.net/page.aspx/860/iis-express/

#8


0  

You have to configure the port first for example 127.0.0.1:91 then you need to allow access to port 91 from windows firewall->>advance setting->>inbound rules->> new rule. then check port->> assign new port (91). then next to finished. After this 127.0.0.1:91 should be accessible from the web.

您必须首先配置端口,例如127.0.0.1:91,然后您需要允许从Windows防火墙访问端口91 - >>高级设置 - >>入站规则 - >>新规则。然后检查端口 - >>分配新端口(91)。然后在旁边完成。在此之后,应该可以从网*问127.0.0.1:91。