|
Getting your IP address in an applet |
|
|
You can use the following code snippet to get the IP address in an applet:
String ip = (new Socket(getDocumentBase().getHost(), getDocumentBase().getPort()))
.getLocalAddress().getHostAddress();
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.