Streyda – Blog about ITSM tools

Posts about a development in Remedy, Maximo and ServiceNow and global ITIL concepts

Skip to content
  • Home
  • Remedy
  • Maximo
  • Service Now
  • About Me

Identifying Midtier behind LB

Our client would like to identify the current midtier where he is already logged in, but he is using HA environment.

file: Login jsp

Hostname + IP address

InetAddress inetAddress = InetAddress.getLocalHost();
    out.println("<span>Server: "+inetAddress.getHostName()+" ("+inetAddress.getHostAddress()+")</span>");

IP address of client

String cliIpAdd  = request.getHeader("X-FORWARDED-FOR");  
    if(cliIpAdd == null)
      {
         cliIpAdd = request.getRemoteAddr();  
      }
      out.println("<span>Client: "+cliIpAdd+"</span><br>");  

Client version

out.println("<span>"+Configuration.getInstance().getClientVersion()+"</span><br>");

Related posts:

  1. Change background-color of panel by ActiveLink (workaround)
  2. Midtier – Custom login page
  3. How to center content in the form
  4. How to translate forms into different languages
This entry was posted in remedy and tagged balancer, client ip, hostname, ip, java, login, login.jsp, midtier, Remedy, remedy hostname on 2018-07-11 by streyda.

Post navigation

← How to configure Object Structure and Result Set portlet in Maximo Transform Maps in ServiceNow →

Recent Posts

  • How to do not mistakes in REST design as the architect (so far as I know)
  • Data migration template
  • My mostly used function in transformation?
  • Transform Maps in ServiceNow
  • Identifying Midtier behind LB

Tags

  • ars
  • arsystem
  • ar system localization
  • automationscript
  • bmc
  • business objects
  • clear cache
  • developer cache
  • events
  • fill
  • java
  • jqery
  • jquery
  • jython
  • locale
  • localizatino
  • localization
  • localizing remedy
  • login
  • loginpage
  • maximo
  • maximo domains
  • midtier
  • midtierlogin
  • offerings
  • panels
  • portlet
  • redirect
  • Remedy
  • remedydeveloper
  • remedy language
  • reporting
  • result set
  • selfservicecenter
  • servicenow
  • splitter panel
  • ssc
  • start center
  • synonym
  • tabs
  • timeout
  • tip
  • translation
  • useful
  • ux
Privacy Policy Proudly powered by WordPress