Question
Brain glitch: how to get environment server name (not ip)
I'm having a brain glitch, so this may be a dumb question,
but here goes. How would you create "Send To a Friend" hyperlink in
an application with both intranet and internet users?
I thought of using CGI variables
http://#CGI.SERVER_NAME#/SomePage.cfm?id=89
But as I understand it CGI.SERVER_NAME will return an IP for intranet users accessing the site via a private IP address. So the result would be link containing a private IP address that's meaningless to the outside world.
http://192.168.x.x/SomePage.cfm?id=89
Is there any way around this aside from hard-coding?
I thought of using CGI variables
http://#CGI.SERVER_NAME#/SomePage.cfm?id=89
But as I understand it CGI.SERVER_NAME will return an IP for intranet users accessing the site via a private IP address. So the result would be link containing a private IP address that's meaningless to the outside world.
http://192.168.x.x/SomePage.cfm?id=89
Is there any way around this aside from hard-coding?