Link to home
Start Free TrialLog in
Avatar of ivylnm
ivylnm

asked on

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

Avatar of Ivanov_G
Ivanov_G
Flag of Bulgaria image

TWebRequest.RemoteAddr ?!
Avatar of ivylnm
ivylnm

ASKER

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
maybe you connect to local network or remote via VPN ... where is the client located ?
ASKER CERTIFIED SOLUTION
Avatar of Mohammed Nasman
Mohammed Nasman
Flag of Palestine, State of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ivylnm

ASKER

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 .....
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... ?