External IP means external to the webserver and what shows as the IP will depend on
how the intranet server is accessed.
If the webserver is directly on the same LAN as the clients are, and they are accessing the server via it's NETBIOS name, LAN internal DNS alias or LAN IP then the IP shown will be the LAN IP of the client.
If the clients are on a different subnet or a remote location then it will be the
router IP or the ISP/WAN IP that is displayed.
So "security risks" are minimal as the internal (LAN) IP will not be displayed if the server is accessed via its external interface.
If your server can run SSI you can use;
<!--#echo var="REMOTE_ADDR" -->
to display the IP of the client accessing the server.
Other than that, server side code can be used or as noted by vacunita, client side scripting can be used, in which case, it will
always be the IP of the client browser that is shown.
Chris.
Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
People Counting Systems
So long, and thanks for all the fish.