Very late reply. Take a look at this mini-project: https://diafygi.imtqy.com/webrtc-ips/
This gives you an IP address but does not seem to give a port. However, if you look at these lines: //match just the IP address var ip_regex = /([0-9]{1,3}(\.[0-9]{1,3}){3})/ var ip_addr = ip_regex.exec(candidate)[1];
They seem to be removing the port. I'm not sure, but you can play with him to find out.
source share