From Applet get servers dns or ip address


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: From Applet get servers dns or ip address

Hybrid View

  1. #1
    Moppy Guest

    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

  2. #2
    noone Guest

    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



  3. #3
    noone Guest

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center