Port Exhaustion and IIS 8 on Server 2012 R2

Any type of network issues that have timeouts or a machine that needs to be rebooted every few days probably has port issues. Use the following commands to give you 60,000 ports. I had to do this on my domain controllers, DNS requires lots of ports.

netsh int ipv4 set dynamicport tcp start=10001 num=50000

netsh int ipv4 set dynamicport udp start=10001 num=50000

netsh int ipv6 set dynamicport tcp start=10001 num=50000

netsh int ipv6 set dynamicport udp start=10001 num=50000

netsh int ipv4 show dynamicport tcp