Robert
2008-07-17 04:12:50 UTC
Hi,
I am attempting to find a way to use IntraWeb features to read the
host IP of the web user who accessed to the home page. I have read
other posts, which no one has come up with the best solution.
I know IntraWeb has the "restricted" IP addresses feature. This is
where I want to know where (and how) the IP address can be read by the
RestrictedIPs service in IWServerController property, as i want to log
all inbound web user's IP addresses. What I'm saying is that if the
RestrictedIPs service is available, why can't we know what IP address
it detects?
After reading many hpp header files, I found something that may be
worth to look at which I'm detailing here:
in ServerController.cpp code (I use C++Builder 2007), the
TIWServerController::IWServerControllerBaseNewSession function may be
used to extract the remote IP address:
ASession->Data = new TIWUserSession(NULL);
MainForm->LogMemo->Lines->Add(ASession->IP); // main form has the Memo
named LogoMemo
Please advise on what is needed to be done to allow for extracting the
remote user IP address.
Thanks,
Robert J. Rademacher
I am attempting to find a way to use IntraWeb features to read the
host IP of the web user who accessed to the home page. I have read
other posts, which no one has come up with the best solution.
I know IntraWeb has the "restricted" IP addresses feature. This is
where I want to know where (and how) the IP address can be read by the
RestrictedIPs service in IWServerController property, as i want to log
all inbound web user's IP addresses. What I'm saying is that if the
RestrictedIPs service is available, why can't we know what IP address
it detects?
After reading many hpp header files, I found something that may be
worth to look at which I'm detailing here:
in ServerController.cpp code (I use C++Builder 2007), the
TIWServerController::IWServerControllerBaseNewSession function may be
used to extract the remote IP address:
ASession->Data = new TIWUserSession(NULL);
MainForm->LogMemo->Lines->Add(ASession->IP); // main form has the Memo
named LogoMemo
Please advise on what is needed to be done to allow for extracting the
remote user IP address.
Thanks,
Robert J. Rademacher