🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3338

Can an Applet determine the HOST name?

#3338
From: Gene Lett
Date: Tue, 10 Feb 1998 00:00
7 lines
662 bytes
Anyone know of an easy way an Applet can determine which machine (i.e.
hostname) it is being run from (short of reading it from a file hosted on
the same machine)? 

I need this to enable the applet to dynamically build JDBC Connection URL
for access a database residing on the host.
Technical Details
Message-ID: <01bd3663$f52ab180$ee115193@da2745>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,d5f8417d5e1ec962,start
X-Google-Attributes: gid1089d0,public
From: "Gene Lett" <gelett@tasc.com>
Subject: Can an Applet determine the HOST name?
Date: 1998/02/10
Message-ID: <01bd3663$f52ab180$ee115193@da2745>
X-Deja-AN: 323875483
Organization: None
Newsgroups: borland.public.jbuilder.java.api