If you are trying to block an incoming connection, then you shouldn't have to do anything. "Windows Firewall" in WinXP already does that.
If you are trying to block an outgoing connection, then you have two options. You could use a application-based (as opposed to port-based) firewall (like Zone Alarm), or you could write a little program that binds to that port.