473,671 Members | 2,168 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.UserHos tAddress() )
Feb 18 '06 #1
1 3930
Keen
6 New Member
(Request.UserHo stAddress) 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.UserHos tAddress will be '100.100.100.10 0'
But, when I put my cliente Outside of the server and then open up
the client the result of Request.UserHos tAddress 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
1767
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> i have multiple web servers behind my isa server. that route the user by the sub domain i.e. http://subdomain.mydomain.com http://myother.mydomain.com i only have 1 external static ip address to use. i use isa's web publishing rules for this.
5
16535
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
1619
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 computer that the object resides on. I have looked into remoting but I am getting confused as to what method to use to achieve this kind of result. Can I have several clients all using the same channel listening for a method call with my object...
0
1214
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 environment in a local area network, consisting of PC and Macintosh clients. Macintosh users will indeed just use the searching facilities of the application. Our Web-Server has Windows 2003 Server and IIS6 on it. Although the PC's can...
1
1603
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 object model? if yes where do I get help on it. If No ? How do I achieve this task? pls help
6
4900
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 this: public __value enum Colors { Red = 1, Green = 2, Blue = 4, Yellow = 8 }; However, the resulting wsdl omits the actual flag values: - <s:simpleType name="Colors">
6
1491
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 me with the data. When I hit the reply-button in my default email client (TheBat!), all is well and a new email with the sender's address in the to: - field is generated. But when that same email is opened in Outlook Express, and I hit the...
3
2203
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 something I must change in php ini file? Thanks in advance for any help.
0
4133
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 throwing an error like Warning: socket_bind() : unable to bind address : Only one usage of each socket address (protocol/network address/port) is normally permitted. in C:\xampp\htdocs\socket\client1.php on line 16 Warning: socket_recvfrom() :...
0
8476
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
8393
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
8820
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
8670
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
7433
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...
0
4224
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
4406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2810
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
1809
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.