internal void InitializeNetwork(string peerChannel, TerrariumLed[] leds)
{
// Set up the LEDs
_discoveryLed = leds[(int) LedIndicators.DiscoveryWebService];
_peerConnectionLed = leds[(int) LedIndicators.PeerConnection];
_receivedPeerConnectionLed = leds[(int) LedIndicators.PeerReceivedConnection];
// Start listening on HTTP
_peerChannel = peerChannel;
//GlobalProxySelection.Select = GlobalProxySelection.GetEmptyWebProxy();
WebRequest.DefaultWebProxy = null;
SetHostIPInformation();
StartHttpNamespaceManager();
// Start our announcement thread
announceThread = new Thread(AnnounceAndRegisterPeer) {Name = "Peer Discovery Thread"};
announceThread.Start();
}