GetIPAddress() public method

Get the IP address of the server. Raises an exception on failure.
public GetIPAddress ( ) : IPAddress
return System.Net.IPAddress
        /// <summary>
        /// Send a direct message to a server.  Failures are ignored.
        /// </summary>
        /// <param name="Data">Supplies the message payload.</param>
        /// <param name="Server">Supplies the destination server.</param>
        private void SendMessageToServer(byte[] Data, GameServer Server)
        {
            try
            {
                IPAddress Address;

                if (Server.ServerId == LocalServerId)
                {
                    Address = IPAddress.Loopback;
                }
                else
                {
                    Address = Server.GetIPAddress();
                }

                SocketIo.SendMessage(Data, Address, Server.ServerPort);
            }
            catch
            {
            }
        }
        /// <summary>
        /// Send a direct message to a server.  Failures are ignored.
        /// </summary>
        /// <param name="Data">Supplies the message payload.</param>
        /// <param name="Server">Supplies the destination server.</param>
        private void SendMessageToServer(byte[] Data, GameServer Server)
        {
            try
            {
                IPAddress Address;

                if (Server.ServerId == LocalServerId)
                    Address = IPAddress.Loopback;
                else
                    Address = Server.GetIPAddress();

                SocketIo.SendMessage(Data, Address, Server.ServerPort);
            }
            catch
            {
            }
        }