473,511 Members | 15,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get Clients Actual IP Address

1 New Member
i am using the following code to get Client system ip address but it is showing only default local host ip address (127.0.0.1). how do i get actual ip address
Response.Write(Request.UserHostAddress() )
Feb 18 '06 #1
1 3924
Keen
6 New Member
(Request.UserHostAddress) That function is correct. ;) Ill share my knowledge with you :p

Let's look at it by Example:
My Local IP Address: 100.100.100.100
Public IP : 10.10.10.10

Now, when I am accessing my client from my computer
the Result of Request.UserHostAddress will be '100.100.100.100'
But, when I put my cliente Outside of the server and then open up
the client the result of Request.UserHostAddress will be '10.10.10.10'

So I guess you are the server and the client?
Is that where you got confussed?
Feb 20 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1758
by: James | last post by:
how come when my web server asp page returns the users ip address it returns my local isa proxy servers ip address instead? for example: <HTML> <%Request.ServerVariables("REMOTE_ADDR")%> </HTML>...
5
16516
by: Gidraz | last post by:
Hello, i can't figure out how to retrieve clients MAC address using C#.NET. I can get IP but not MAC. Thanks in advance. Gidraz
1
1610
by: Nick | last post by:
I have a c# program that holds a several objects. I would like this these objects sent to to several clients using remoting across seperate machines at a certain times that is determined by the...
0
1211
by: microcosmos | last post by:
We have developed a web-based "intranet" application using ASP.NET, C# and SQL Server 2000, session management with State Server. This application will not be used on internet, just an intranet...
1
1592
by: Rohan | last post by:
Hi There, I want o access address book of OUTLOOK EXPRESS on Web Clients PC so that he can select addresses from his address book & copy them to our database. Does Outlook Express support an...
6
4882
by: cipher | last post by:
I have some constant values in my web service that my client application will require. Having to keep server side and client side definitions insync is tedious. I am trying to do something like...
6
1488
by: A.Translator | last post by:
As I am just beginning to learn php I had to fish a free form script from the web. The script works fine, it processes the data filled in, including the sender's email address and sends an email to...
3
2187
by: shybe | last post by:
I have a send mail script on my site that. The emails are recieved by gmail, and yahoo, but not to mail clients like Outlook, Mail, etc...) Is this a problem with the script, or is it...
0
4120
by: samyphp | last post by:
i am trying to broadcast continuous data from server using udp connection... while accessing from single client its working fine... but while accessing from multiple clients its not working and...
0
7153
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
7371
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
7432
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...
1
7093
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...
0
7517
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...
1
5077
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...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
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 ...
0
452
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...

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.