473,804 Members | 3,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting user IP Address

I have been using the following to get the client IP address:

Request.ServerV ariables["REMOTE_ADD R"]

All of a sudden it has started returning

127.0.0.1 all the time. Does anybody have any idea why this would happen?

Any help is greatly appreciated.
Nov 19 '05 #1
5 2345
Are you running this site locally
http://localhost ??

"Greg Smith" wrote:
I have been using the following to get the client IP address:

Request.ServerV ariables["REMOTE_ADD R"]

All of a sudden it has started returning

127.0.0.1 all the time. Does anybody have any idea why this would happen?

Any help is greatly appreciated.

Nov 19 '05 #2
Yes.
"Tampa .NET Koder" <Ta***********@ discussions.mic rosoft.com> wrote in
message news:D0******** *************** ***********@mic rosoft.com...
Are you running this site locally
http://localhost ??

"Greg Smith" wrote:
I have been using the following to get the client IP address:

Request.ServerV ariables["REMOTE_ADD R"]

All of a sudden it has started returning

127.0.0.1 all the time. Does anybody have any idea why this would
happen?

Any help is greatly appreciated.

Nov 19 '05 #3

"Greg Smith" <gj*@umn.edu> wrote in message
news:u8******** ******@TK2MSFTN GP14.phx.gbl...
I have been using the following to get the client IP address:

Request.ServerV ariables["REMOTE_ADD R"]

All of a sudden it has started returning

127.0.0.1 all the time. Does anybody have any idea why this would happen?

Any help is greatly appreciated.

I use request.userhos taddress to get the ip address of the user.
Nov 19 '05 #4
If you are accessing the site from your own machine..I think this is the
address you should be getting. But, if you access this site from a remote
workstation, then you should see that remote workstation address. Other
than that, I don't have a clue what is wrong..I will defer this to someone
else

"Greg Smith" wrote:
I have been using the following to get the client IP address:

Request.ServerV ariables["REMOTE_ADD R"]

All of a sudden it has started returning

127.0.0.1 all the time. Does anybody have any idea why this would happen?

Any help is greatly appreciated.

Nov 19 '05 #5
REMOTE_ADDR is the IP address of the user visiting the site.

If you are on the same machine as the site, and visit it via
http://localhost/blahblah, then your IP is locahost == 127.0.0.1.

In order to see something different from REMOTE_ADDR, you need to access the
site from a different machine.

--
Ben Strackany
www.developmentnow.com
"Greg Smith" <gj*@umn.edu> wrote in message
news:u4******** ******@TK2MSFTN GP14.phx.gbl...
Yes.
"Tampa .NET Koder" <Ta***********@ discussions.mic rosoft.com> wrote in
message news:D0******** *************** ***********@mic rosoft.com...
Are you running this site locally
http://localhost ??

"Greg Smith" wrote:
I have been using the following to get the client IP address:

Request.ServerV ariables["REMOTE_ADD R"]

All of a sudden it has started returning

127.0.0.1 all the time. Does anybody have any idea why this would
happen?

Any help is greatly appreciated.


Nov 19 '05 #6

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

Similar topics

4
893
by: Dinçer | last post by:
Hi, I am trying to get user data (email data actually) from Active Directory. What I exactly want to do is, getting the email address according to username from the domain. For example, when I enter my username DINCERM, it should give me dincerm@domain.com as result. When I do this: ===
3
6055
by: Mr. Smith | last post by:
Hi All. I need to be able to determine the IP address a drive letter is mapped to. When a user selects a file from a file open dialog, They will, as usual, navigate to the file they want via; Drive letter, folder, folder etc. The Windows file open dialog returns this path in the format C:\folder\folder\file.ext. What I need to know is what is the IP of the C:\ drive or any drive they select, be it P; U; or whatever.
3
12581
by: Dinçer | last post by:
Hi, I am trying to get user data (email data actually) from Active Directory. What I exactly want to do is, getting the email address according to username from the domain. For example, when I enter my username DINCERM, it should give me dincerm@domain.com as result. When I do this: ===
6
10751
by: Prabhat | last post by:
Hi Friends, It it possible to get the MAC Address of the client PC using ASP. Also can I get the HDD ID/Serial Number also using asp? Please advice. Thanks Prabhat
0
1544
kaleeswaran
by: kaleeswaran | last post by:
hi! currently i am doing registration form... i like to getting an ip address from the respective system i mean where the user using my application form, the respective system ip address will be dispalyed after completion of my registration form.. so what should i do to get an ip address.... i am using jsp .... hope i am get a quick replay from you, thank you,
5
13213
by: Michael Howes | last post by:
I'm writing a utility to manage a machines *local* accounts in c# I am getting all the users in a specific Group just fine but when I want to get some of the information on each user from their Properties collection I can't get the properties on some users. For example, I get all the users that are part of my machines Administrators Group. I get get the properties of the built in local Administrator account and some local IT account,...
4
3316
by: jeet | last post by:
Plz help me.Problem is that On the first page I display all other user with checkbox and give user option to select only two user which he wants to send message. Tell me please how I'll get those checkboxes value and name on the next page and send message to only those two selected user. Thanx in advance
2
3584
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in uby/Rails. I started it in Perl and gave up on Perl as I went from the 'display the database information on the web page' to the 're-display the information from the database and allow the user to update the database using the web page' stage and realized...
7
4448
vikas251074
by: vikas251074 | last post by:
I am getting error above in following code since few days giving tension day and night. How can I solve this? I am facing since Oct.25. in line no. 362 After doing a lot of homework, I am surrendered to you. <%@ Language=VBScript%> <%Option Explicit%>
0
9569
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10558
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...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9130
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
7608
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
5503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2975
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.