Hello,
How can I get the current URL of the server on which my applet is currently in?
Thank you,
LD
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
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:
Basically something like this.Code:public class AnApplet() extends JApplet { public URL GetHostUrl() { URL url; url = this.getcodeBase(); return url; } }
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks