diff options
Diffstat (limited to 'CSharp/Ivy/IvyPPC')
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyClient.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyClient.cs b/CSharp/Ivy/IvyPPC/IvyClient.cs index 360c9b1..f3528dc 100644 --- a/CSharp/Ivy/IvyPPC/IvyClient.cs +++ b/CSharp/Ivy/IvyPPC/IvyClient.cs @@ -87,19 +87,20 @@ namespace IvyBus }
}
- private String RemoteAddress
+ public String RemoteAddress
{
get
{
- return socket.RemoteAddress.ToString();
+ IPHostEntry hostInfo = Dns.GetHostByAddress(socket.RemoteAddress);
+ return hostInfo.HostName;
}
}
- private String RemotePort
+ public int RemotePort
{
get
{
- return socket.RemotePort.ToString();
+ return socket.RemotePort;
}
}
|