How is your experience with the OutSystems Community?
environment-info
Service icon

Environment Info

Stable version 1.4.0 (Compatible with OutSystems 11)
Uploaded
 on 10 Nov (14 hours ago)
 by 
5.0
 (7 ratings)
environment-info

Environment Info

Compatible with:
Created on OutSystems 11

Version 1.4.0

Stable
Current
See documentation
Uploaded on 14:39 (15 minutes ago) by 
Compatible with:
Version 11
Database:
All
Release notes:

Breaking change: 

GetClientIPAddress

  • On OutSystems Cloud, it returns the real visitor's IP. It now ignores a forged X-Forwarded-For header, which 1.3.0 would return as the client IP. It reads the header from the right and skips the platform's trusted proxies and AWS CloudFront's addresses.
  • With trusted proxies disabled in Service Center, it still returns the first X-Forwarded-For entry. This is the usual on-premises setup, and that entry can still be forged.
  • Cleaner values. Ports are removed and IPv6 addresses are returned in a standard form. Empty, "unknown" or invalid values fall back to the connection address. Outside an HTTP request, it returns an empty string.
  • If you use your own CDN in front of OutSystems Cloud (Cloudflare, Akamai, and so on), the action now returns the CDN's address. To get the visitor's IP back, add the CDN's IP ranges as trusted proxies in Service Center.


Fixes:

  • GetEnvironmentName, GetEnvironmentKey, GetFrontEndName, IsProductionEnvironment and GetEnvironmentServerMode no longer throw when the platform context isn't available. Instead they return an empty string, False, or a ServerMode with Id 0 and an empty Name.
  • GetRuntimeInfo returns an empty OSVersion or MachineName when the server can't read it, instead of failing the whole action.
License:
Application Objects:
Environment Info has 0 AOs.

Version 1.3.0

Stable
See documentation
Uploaded on 11 Jun by 
Compatible with:
Version 11
Database:
All
Release notes:

New Features

  • GetClientIPAddress — Returns the IP address of the client making the current request. Detects the real client IP behind load balancers / reverse proxies via the X-Forwarded-For header, falling back to the direct connection address. Returns an empty string in non-HTTP contexts (Timers, BPT).
  • GetRuntimeInfo — Returns server runtime details in a single structure: .NET framework version, OS version, machine name, logical processor count, and 64-bit OS / process flags. Handy for support and environment diagnostics.


Fixes

  • GetEnvironmentHostname — Fixed a possible null-reference error when the environment's default DNS name isn't set; it now returns an empty string instead of throwing.
Application Objects:
Environment Info has 0 AOs.

Version 1.2.0

Stable
See documentation
Uploaded on 22 Jan by 
Compatible with:
Version 11
Database:
All
Release notes:

New features:

  • GetFrontEndName: Retrieves the network name or identifier of the specific Front-End server where the current process is being executed.
Application Objects:
Environment Info has 0 AOs.