Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Request ServerVariable View modes: 
User avatar
Member
Member
merete-grape - 3/20/2012 7:50:45 AM
   
Request ServerVariable
I want my page to write out users IP-address and more.....

What can I do to get these 2 lines working on my page:

IP: <%= (request.servervariables("remote_addr")) %>
HOST: <%=(Request.ServerVariables("HTTP_HOST"))%>

User avatar
Kentico Support
Kentico Support
kentico_janh - 3/20/2012 8:33:52 AM
   
RE:Request ServerVariable
Hello,

You can just use the Static text web part and you can fill its Text property with following text and context macros:
IP: {%ip%}
HOST: {%domain%}

Best regards,
Jan Hermann

User avatar
Member
Member
merete-grape - 3/23/2012 4:33:20 AM
   
RE:Request ServerVariable
Thx a lot :)