+ Reply to Thread
Results 1 to 3 of 3

Thread: Server URL

  1. #1
    Learning Programmer ld_pvl is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    42

    Server URL

    Hello,

    How can I get the current URL of the server on which my applet is currently in?

    Thank you,
    LD

  2. #2
    Code Warrior BlaineSch is a glorious beacon of light BlaineSch is a glorious beacon of light BlaineSch is a glorious beacon of light BlaineSch is a glorious beacon of light BlaineSch is a glorious beacon of light BlaineSch is a glorious beacon of light BlaineSch's Avatar
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Age
    19
    Posts
    2,223
    Blog Entries
    8

    Re: Server URL

    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

  3. #3
    Learning Programmer ld_pvl is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    42

    Re: Server URL

    Quote Originally Posted by BlaineSch View Post
    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:

    Code:
    public class AnApplet() extends JApplet {
    
          public URL GetHostUrl() {
               
               URL url; 
               url = this.getcodeBase();
               return url;
          }
    }
    Basically something like this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Part 1: Installing Shoutcast Server onto an SSH Shell
    By morefood2001 in forum Tutorials
    Replies: 8
    Last Post: 10-23-2008, 03:16 PM
  2. Setting up server 2003
    By morefood2001 in forum Tutorials
    Replies: 4
    Last Post: 08-18-2008, 10:11 AM
  3. DNS Hacking
    By John in forum Tutorials
    Replies: 1
    Last Post: 04-09-2008, 12:34 PM
  4. server client application - (i really need your help)
    By sarahnetworking in forum C and C++
    Replies: 5
    Last Post: 03-04-2008, 10:47 AM
  5. Global variables (SERVER)
    By Jaan in forum PHP Tutorials
    Replies: 0
    Last Post: 03-22-2007, 09:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts