Announcement

Collapse
No announcement yet.

obtaining server info (URL, port number and protocol) in the Server Script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • obtaining server info (URL, port number and protocol) in the Server Script

    Hi,
    I've configured two Servers in my project settings. One HTTPS with non standard port number. the second is LAN

    In my server Script I need to connect to the selected server and download additional files.
    Is there anyway to obtain the currently selected Server info (HTTPS & port number) or LAN) in the Client Script and pass it to the Server Script.

    My current solution is to pass the ServerName to the Server Script using a session variable, and use a hard coded port number. This means that if the settings like Port number changes, I have to change the Script also)

    any advice ?
    -fa

  • #2
    The port and server name is used only internally, and is not exposed as a property usable in scripting... The only thing which can be used directly in scripting is the identifier of the update server, but not the actual data stored in that configuration. Yes, this means if you change the port of the update server, and need to pass this info forward to the script, you will need to edit these scripts.

    Ulrich

    Comment

    Working...
    X