How to get local IP and port of socket connection

Hi I have made a tcp socket connection with this plugin
https://github.com/blocshop/sockets-for-cordova
Everything is working fine, but how do I find the apps local IP address and port of the socket connection?
Any help is very much appreciated
Thanks