If your goal is to simply open a TCP connection with a Windows machine (XP / Vista / 2003/2008) without standing in front of your own service, you will not break anything if you open (and then close it without sending a message) to port 445 (Windows-DS).
If you want to configure your own server, follow other recommendations regarding unused ports above 1024.
source share