SocketLibrary.SocketClient.GetRemoteHostIP C# (CSharp) Méthode

GetRemoteHostIP() public méthode

Gets the IP address of this client in string representation
public GetRemoteHostIP ( ) : String
Résultat String
        public String GetRemoteHostIP()
        {
            String result = "";
            try
            {
                result = this.Sock.RemoteEndPoint.ToString();
            }
            catch (ObjectDisposedException e)
            {
                result = "SOCKET DISPOSED";
            }
            return result;
        }