Server code can be found in the ToyVPN sample distributed in the SDK.