Re: InetAddress and applet
Posted By:
Xu_jianfeng
Posted On:
Wednesday, July 3, 2002 11:11 PM
add the code in your applet code:
String strServerIP = getCodeBase().getHost();InetAddress address = InetAddress.getByName(strServerIP);
Now the address is the ip address that the server that supplys the applet.