473,385 Members | 1,337 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,385 software developers and data experts.

Display user's IP address when visiting internal site

Here is my dilema. I'm running IIS on a Windows 2000 Proffessional PC.
I'm a running a small intranet site off this machine which is
accessible by the end users by typing in the computer name of this
machine. What I need is a script of any kind that will allow me to
capture the end users internal IP address and display it on the status
bar of their IE window (Bottom left). Again, the only people accessing
this site are internal users and I want them to see what their IP
address is whenever they access the main page of the site. Is this
possible? Any help is appreciated.

-Jorge
Jul 20 '05 #1
3 11331
JayPee wrote:
I'm running IIS on a Windows 2000 Proffessional PC.
I'm a running a small intranet site off this machine which is
accessible by the end users by typing in the computer name of this
machine. What I need is a script of any kind that will allow me to
capture the end users internal IP address and display it on the status
bar of their IE window (Bottom left). Again, the only people accessing
this site are internal users and I want them to see what their IP
address is whenever they access the main page of the site. Is this
possible?


Assuming the main page is an ASP page (or can be made one) and tested
for 127.0.0.1 only, in the head section include:

<script type="text/javascript">
var sIpAddress = "<%= Request.ServerVariables("REMOTE_ADDR") %>";
window.defaultStatus = sIpAddress;
</script>
FWIW,
Dom


Jul 20 '05 #2
Check this out:
http://javascript.internet.com/user-...p-address.html

"JayPee" <jp*****@hotmail.com> wrote in message
news:a8**************************@posting.google.c om...
Here is my dilema. I'm running IIS on a Windows 2000 Proffessional PC.
I'm a running a small intranet site off this machine which is
accessible by the end users by typing in the computer name of this
machine. What I need is a script of any kind that will allow me to
capture the end users internal IP address and display it on the status
bar of their IE window (Bottom left). Again, the only people accessing
this site are internal users and I want them to see what their IP
address is whenever they access the main page of the site. Is this
possible? Any help is appreciated.

-Jorge

Jul 20 '05 #3
Hi there

[posting sequence restored]
"JayPee" <jp*****@hotmail.com> wrote in message
news:a8**************************@posting.google.c om...
Here is my dilema. I'm running IIS on a Windows 2000 Proffessional PC.
I'm a running a small intranet site off this machine which is
accessible by the end users by typing in the computer name of this
machine. What I need is a script of any kind that will allow me to
capture the end users internal IP address and display it on the status
bar of their IE window (Bottom left). Again, the only people accessing
this site are internal users and I want them to see what their IP
address is whenever they access the main page of the site. Is this
possible? Any help is appreciated.

-Jorge

esrkq wrote: Check this out:
http://javascript.internet.com/user-...p-address.html


Warning !!
Please Note !! This is really a server-side solution, similar to the
already-mentioned ASP solution. This solution only works if the SERVER
supports and implements server-side includes. This isn't really a
javascript solution, per se. (ie, it isn't *javascript* that is
detecting the IP number! (true also of the ASP solution) Plus, what's
displayed isn't really my machine's IP number anyway. But that probably
won't be an issue in the OP's scenario)

If you're using IIS, it's probably better to use the ASP version, IMO.
Regards,
Stephen

Jul 20 '05 #4

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

Similar topics

3
by: Darren | last post by:
I had to restore my server from backup. When I did, I could no longer access any asp pages on my web server. The error says HTTP 500 Internal Server Error. I have turned off friendly HTTP error...
5
by: Greg Smith | last post by:
I have been using the following to get the client IP address: Request.ServerVariables All of a sudden it has started returning 127.0.0.1 all the time. Does anybody have any idea why this...
8
by: | last post by:
I'm looking for some design guidance on a collection of projects I'm working on. The project involves a bunch of websites constructed out of a collection of user controls. Different user...
3
by: SteveA | last post by:
This is my first post here, so please go easy on me. I'm working on a site for my family (aurigema.com) and after designing and redesigning the layout I finally got to the point where I felt OK...
7
by: Inny | last post by:
Hello, Im trying To create A code In php That Does the Following: A. detects visiting users real ip address B. detects city and country C. detects browser type and version D. detects referrer...
1
by: azgaranoop | last post by:
Hi, i want to display a alert box when a user leave my site.... Means if a user clck on X button i.e on top right corner of the browser or the user click on the address bar and try to change the...
18
by: sebastian | last post by:
Can this be done without client-side scripting? I thought sessions might be the answer but after some testing found that sometimes the old session data remained even after the user left the site...
9
by: tomhawkins1 | last post by:
Hi I currently have a site where users can upload files. These files can be doc, wmv, jpeg, xls, dwf, dwf and dwg. These files are uploaded to /home/**user**/uploads and not /home/...
1
vanc
by: vanc | last post by:
I couldn't find any where for this deadly simple request. All I want is display a website within a content in a master page but have no clue how to do this. And also want to remove all the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.