Created
December 28, 2017 05:45
-
-
Save nani1337/08ea88000774df93d53f9ae8b0b4a1d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sock = new java.net.Socket(); | |
sock.bind(new java.net.InetSoscketAddress('0.0.0.0',0)); | |
sock.connect(new java.net.InetSocketAddress(document.domain,(!document.location.port)?80:document.location.port)); | |
alert(sock.getLocalAddress().getHostAddress()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment