Solved

Get Client IP Address via TWebRequest in ISAPI web server application

Posted on 2004-10-04
6
728 Views
Last Modified: 2010-05-18
i recently developed one web server ISAPI application via Delphi ...a dll is generated ...

i hope to get client user ip address ...so, i use TwebRequest.remoteIP ....however, it comes out internal IP address which is 192.168.0.xxx, is there anyway i can get their external IP address which can uniquely identify each client user ?


thanks

0
Comment
Question by:ivylnm
  • 3
  • 2
6 Comments
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 12215265
TWebRequest.RemoteAddr ?!
0
 

Author Comment

by:ivylnm
ID: 12215280
oh ..sorry ...my mistake... i use both TWebRequest.RemoteAddr and TWebRequest.RemoteHost ....but, it is still the same ...giving me the internal IP Address ...not the external IP ..any idea ?

thanks
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 12215951
maybe you connect to local network or remote via VPN ... where is the client located ?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 125 total points
ID: 12216091
Hello
  TWebRequest.RemoteAddr will return the external IP, not the internal, As Ivanov_G  said before,

  You need to test your ISAPI from outside your LAN
0
 

Author Comment

by:ivylnm
ID: 12223543
I tried to access my dll outside a LAN, but it always give me 192.168.0.11, i did install firewall in my LAN, is it  because of the firewall settings ?
i just want to uniquely identify each user who access my dll .....
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 12224191
I have no idea what exactly you are doing there, but this works.

Can you create a simple DLL, which output the RemoteAddr and give me the URL... ?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now