summaryrefslogtreecommitdiff
path: root/CSharp/Ivy
diff options
context:
space:
mode:
Diffstat (limited to 'CSharp/Ivy')
-rw-r--r--CSharp/Ivy/Ivy/IvyClient.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/CSharp/Ivy/Ivy/IvyClient.cs b/CSharp/Ivy/Ivy/IvyClient.cs
index 360c9b1..f3528dc 100644
--- a/CSharp/Ivy/Ivy/IvyClient.cs
+++ b/CSharp/Ivy/Ivy/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;
}
}