How to turn Java class into one of its subclasses (SockerAddress and InetsocketAddress)
- by vasion
I am trying to get the ip of a socket connection in string form.
I am using a framework, which returns the SocketAddress of the recieved message. How can i transform it to InetSocketAddress or InetAddress?