From Applet get servers dns or ip address
Hello
Can anyone help
Is it possible, and if so how do you, from an applet, get the ip or dns address
of the server that served that applet.
I wish to create a socket connection back to the server that served it.
Or is there a way that I can create a socket connection back to the server
on a specified port without having to have the address etc.
Thanks for your help
Moppy
Re: From Applet get servers dns or ip address
public void init()
{
String host = getCodeBase().getHost();
}
"Moppy" <djavro@start.com.au> wrote:
>
>Hello
>
>Can anyone help
>Is it possible, and if so how do you, from an applet, get the ip or dns
address
>of the server that served that applet.
>I wish to create a socket connection back to the server that served it.
>Or is there a way that I can create a socket connection back to the server
>on a specified port without having to have the address etc.
>
>Thanks for your help
>Moppy
Re: From Applet get servers dns or ip address
Should anyone want to know
public void init()
{
String host = getCodeBase().getHost();
}
"Moppy" <djavro@start.com.au> wrote:
>
>Hello
>
>Can anyone help
>Is it possible, and if so how do you, from an applet, get the ip or dns
address
>of the server that served that applet.
>I wish to create a socket connection back to the server that served it.
>Or is there a way that I can create a socket connection back to the server
>on a specified port without having to have the address etc.
>
>Thanks for your help
>Moppy