Hello,
How can I get the current URL of the server on which my applet is currently in?
Thank you,
LD
Server URL
Started by ld_pvl, Jul 02 2009 08:17 PM
2 replies to this topic
#1
Posted 02 July 2009 - 08:17 PM
|
|
|
#2
Posted 03 July 2009 - 05:28 PM
If your on windows you can ping it in command line.
"ping www.google.com" then itll tell you.
I found a site just by googling "website ip address"
Find IP address of a website - server ip lookup
"ping www.google.com" then itll tell you.
I found a site just by googling "website ip address"
Find IP address of a website - server ip lookup
#3
Posted 03 July 2009 - 08:42 PM
BlaineSch said:
If your on windows you can ping it in command line.
"ping www.google.com" then itll tell you.
I found a site just by googling "website ip address"
Find IP address of a website - server ip lookup
"ping www.google.com" then itll tell you.
I found a site just by googling "website ip address"
Find IP address of a website - server ip lookup
Actually what I meant was to retrieve the URL of the host containing the Applet's class.
I found out about it. To those who are looking for the same answer, you can do it like this:
public class AnApplet() extends JApplet {
public URL GetHostUrl() {
URL url;
url = this.getcodeBase();
return url;
}
}
Basically something like this.


Sign In
Create Account


Back to top










