Ticket #753 ( Pending Customer )

Short Description IP Address of the Host
Entered By: gaucho When: 2001-05-03 14:37:48 Build: 2.0.6F
Categories Type: Question   Department: Product   Category: Not Categorized
Description
Hello again,

How can I determine the IP Address of the server hosting 
Screen Surfer applications?

--chuck
Append By: WindSurfer  When: 2001-05-04 14:10:28  New Status: Pending Customer
Comment
Sorry, right now the only way to do this is to define a 
server. or constant. variable and hard-code it.

For example, we like to use a module named env.stml, which 
we don't ever copy from test to production or server-to-
server (unless we're upgrading the contents, then do it 
carefully).

Inside env.stml, you can have:

<tedeclare Constant.IPAddress text 15 data="192.168.25.67">

Then anywhere in your application, just refer to 
constant.ipaddress to utilize the value (no active session 
is needed to reference a server. or constant. variable.

The difference between a server. and constant. variable is 
that the server variable can be changed in script, while 
constant variables can only be set in the declaration and 
are readonly in scripts.