Get networking working on Windows

Hosting doesn't work; connecting hasn't been tested.