Get Client IP Address via TWebRequest in ISAPI web server application

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

ivylnmAsked:
Who is Participating?
 
Mohammed NasmanConnect With a Mentor Software DeveloperCommented:
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
 
Ivanov_GCommented:
TWebRequest.RemoteAddr ?!
0
 
ivylnmAuthor Commented:
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
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
Ivanov_GCommented:
maybe you connect to local network or remote via VPN ... where is the client located ?
0
 
ivylnmAuthor Commented:
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
 
Ivanov_GCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.