Solved

Get Client IP Address via TWebRequest in ISAPI web server application

Posted on 2004-10-04
6
770 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

691 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