How can I make WinXP bind to ports other than 1025-5000 for outgoing TCP connections?

Posted by Chris Dolan on Server Fault See other posts from Server Fault or by Chris Dolan
Published on 2010-04-13T15:05:24Z Indexed on 2010/04/13 15:13 UTC
Read the original article Hit count: 399

Filed under:
|
|

(I originally posted a similar question on StackOverflow but readers recommended I post here instead)

When you create outgoing TCP connections, most applications let the operating system choose which port to use. Most OSes use the IANA recommended dynamic port range of 49152-65535 for this purpose. But in Windows 2003 and earlier (including XP) Microsoft uses ports 1025-5000. Microsoft lets you change the high end of this range via the MaxUserPort TcpIP registry setting, but I see no way to change the low end. I need to have port 4160 free for incoming connections and on rare occasions an outgoing connection steals that port from me before I bind that port.

© Server Fault or respective owner

Related posts about Windows

Related posts about tcpip