In addition to the document properties named above, the location object has host and hostname properties that would presumably hold the IP address and hostname of the server respectively. I haven't tried these to see what they do, but you could write a simple script to test them:
PHP Code:
<script type="text/javascript">
alert(location.hostname);
</script>