<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
Scott,</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
I think Christopher is asking the opposite question... He has correctly virtualized the IDP, but he wants to display (in small text somewhere) the name of the "real" server. This can help with troubleshooting sometimes. If a user is reporting an error, they
also tell you which "real" server it happened on.</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
Andy<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:"Courier New",monospace; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> users <users-bounces@shibboleth.net> on behalf of Cantor, Scott <cantor.2@osu.edu><br>
<b>Sent:</b> Friday, August 9, 2019 10:57 AM<br>
<b>To:</b> Shib Users <users@shibboleth.net><br>
<b>Subject:</b> Re: Getting Hostname IDP is running on</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">On 8/9/19, 1:42 PM, "users on behalf of Christopher Bland" <users-bounces@shibboleth.net on behalf of chris@fdu.edu> wrote:<br>
<br>
> I am not a Java programmer, I have been digging into possible solutions and I think I need to access the<br>
> java.net.InetAddress class so I can call getLocalHost() and/or getHostName(). <br>
<br>
No, you need to fix your web server to properly provide the values in the places you already looked, that's part of basic setup.<br>
<br>
Proxying layer 7 is strongly ill-advised, and I wouldn't do it, but if you choose to do it, that's just the cost of doing business. You need to use the Forwarded-For headers, apply appropriare protections at the load balancer to prevent smuggling, and the deploy
the necessary features on the Java container to pick them up.<br>
<br>
-- Scott<br>
<br>
<br>
<br>
-- <br>
For Consortium Member technical support, see <a href="https://wiki.shibboleth.net/confluence/x/coFAAg">
https://wiki.shibboleth.net/confluence/x/coFAAg</a><br>
To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net<br>
</div>
</span></font></div>
</div>
</body>
</html>