Along with the source code, there's a registry file which you can add to set default settings for logging (Log only errors), port override (no override) and broadcast IPs (Only 255.255.255.255). It's not that useful on it's own, but you can tweak the settings it exposes.
The settings are:
LogFilePath: Path to the log file (duh)
LogLevel: Output log verbosity. 0=None, 1=Errors, 2=Normal 3 or above=Verbose
PortOverride: Use a specific UDP port instead of the default supplied by the game (port 5000)
BroadcastIPs: A space-seperated list of IP addresses to send packets to as well as the default broadcast address (255.255.255.255). For example, putting "123.123.123.123 80.12.56.78" there would cause all broadcast packets to be sent to 255.255.255.255 (LAN broadcast), 123.123.123.123, and 80.12.56.78. That should allow you to play Internet games by adding the IP addresses of the other players there. Note that you'll have to open the port on your router (5000 is the default for Red Alert, you can change that with the PortOverride setting).
Also note that I've not actually tested this, but it should work...
I also updated the Tiberian Sun patch with the above registry settings (Although it uses a different registry key, so you can set up RA and TA seperately). WSOCK32.DLL (Well, .zip) here, Source code here.
If anyone gets around to using either of these patches, please send me a PM or comment in my most recent journal entry [smile]