0

I have a .Net project and I want to changed the maximum concurrent connections with cmd or exe in IIS default website.

How can I changed it with script, exe or cmd commant?

Kurubaran
  • 8,696
  • 5
  • 43
  • 65
John
  • 435
  • 2
  • 6
  • 12

1 Answers1

0

According to this answer: https://stackoverflow.com/a/7898696/888617 you can edit your machine.config to set the max connections.

<configuration>
  <system.net>
    <connectionManagement>
      <add address="*" maxconnection="65535"/>
    </connectionManagement>
  </system.net>
</configuration>

You can get the config file with:

string configPath =  System.Runtime.InteropServices.RuntimeEnvironment.SystemConfigurationFile;
Community
  • 1
  • 1
Justin
  • 6,373
  • 9
  • 46
  • 72