473,396 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Server variables Remote_ADDR / REMOTE_HOST ? - Difference

All,
I am trying to log the IP address of visitors to my site using ASP as
follows

<%
Dim strIPAdd
Dim srtHostName

srtIPAdd = ServerVariables("REMOTE_ADDR")
strHostName = ServerVaraibles("REMOTE_HOST")
%>

Both return the same result i.e an IP address. I was hoping that the
REMOTE_HOST would return the name of the server.
I tried to use HOST_NAME but again i got an IP address

Any thoughts on how to get the name itself ? are people masking the name for
security reasons?

Thanks
Jawahar
Jul 19 '05 #1
1 12230
See:
http://www.webenalysis.com/servervariables.asp

for a bit more info on server variables.

Chris.

"Jawahar Rajan" <jr****@nc.rr.com> wrote in message
news:0R*********************@twister.southeast.rr. com...
All,
I am trying to log the IP address of visitors to my site using ASP as
follows

<%
Dim strIPAdd
Dim srtHostName

srtIPAdd = ServerVariables("REMOTE_ADDR")
strHostName = ServerVaraibles("REMOTE_HOST")
%>

Both return the same result i.e an IP address. I was hoping that the
REMOTE_HOST would return the name of the server.
I tried to use HOST_NAME but again i got an IP address

Any thoughts on how to get the name itself ? are people masking the name for security reasons?

Thanks
Jawahar

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Preston Crawford | last post by:
I'm working on a site that's being developed on Apache/Linux and going to be hosted on IIS/Windows. Anyone know of a site with good tips on possible pitfalls, things to look for. Typical things...
4
by: Otto Haldi | last post by:
Hello to all I have a form in a php script with some inputs. With this form I like te send a javascript variable to the next php script. Every Input are transmittet to the next value but the...
1
by: ruggierorizzi | last post by:
Hi everyone, i would like to know if there is a difference between gethostbyaddress method and $_SERVER. furthermore i hve a little problem using ip address resolution. Some ip address...
1
by: Mike Rand | last post by:
Hi, I am trying to add some server side code in some Client Side Script. I can get it to work properly with the code embedded directly in the .aspx page. However, if I try to use the...
6
by: elyob | last post by:
Hi, I am currently developing on a windows XP machine and upload my code via subversion to a linux server. All was great, until I just tried to test out using Zend Studio. if...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
6
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am thinking about doing this since I got several cases that some of our internal users open more than one browser at the same time from our server. When one of the transactions was not...
3
by: Frank Moyles | last post by:
What is the equivalent for retrieving server side variables? For example in PHP, one such predefined variable is: $_SERVER
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.