Implemented a simple interface to get the ip address of the remote end

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>