Get Client IP Address via TWebRequest in ISAPI web server application

Posted on 2004-10-04
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, i use TwebRequest.remoteIP ....however, it comes out internal IP address which is, is there anyway i can get their external IP address which can uniquely identify each client user ?


Question by:ivylnm
  • 3
  • 2
LVL 12

Expert Comment

ID: 12215265
TWebRequest.RemoteAddr ?!

Author Comment

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

LVL 12

Expert Comment

ID: 12215951
maybe you connect to local network or remote via VPN ... where is the client located ?
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

LVL 22

Accepted Solution

mnasman earned 125 total points
ID: 12216091
  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

Author Comment

ID: 12223543
I tried to access my dll outside a LAN, but it always give me, 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 .....
LVL 12

Expert Comment

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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at

747 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

16 Experts available now in Live!

Get 1:1 Help Now