473,666 Members | 2,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 11335
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.ServerV ariables("REMOT E_ADDR") %>";
window.defaultS tatus = sIpAddress;
</script>
FWIW,
Dom


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

"JayPee" <jp*****@hotmai l.com> wrote in message
news:a8******** *************** ***@posting.goo gle.com...
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*****@hotmai l.com> wrote in message
news:a8******** *************** ***@posting.goo gle.com...
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
7469
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 messages and it gives me less info. All it says is server application error. html or htm pages work fine. I have reinstalled com+ so that I can now access the components services snap-in.
5
2341
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 would happen?
8
1695
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 populations with different access rights and "roles" will be visiting the site. I will be using ASP.NET 2.0's membership, roles, and profiles stuff to manage access. User controls need to be visible or not visible depending on user role. In some...
3
5610
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 putting up a design prototype. Before uploading I checked it against the browsers I had available (IE6,Opera9,FF2) and everything looked exactly like I expected. Once I loaded it up in IE7 though, everything broke. The background image and...
7
2378
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 url E. detects landing page F. appends this information to a txt file Im using the following php file hosted in same folder as the txt file, and using
1
1510
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 address then a alert box display.. Simply display a alert box when a user is about to leave my site throught any of these two ways discuss above..... please provide me code for this........ Thanks
18
9049
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 and returned. Just had an idea, though. Perhaps I could access the users Referrer header?
9
2069
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/ **user**/public_html/uploads to prevent any old user from browsing them. I then use a general showDoc page with the following function (from
1
2249
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 information like address, so user knows nothing about which site and where they're redirected to. The reason is that my company has many internal sites and I'm not the developer of those sites, so what I can do is put them together within one site. ...
0
8448
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8871
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8552
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8640
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7387
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2773
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.