Hi all,
In the open event of Session, I put: dim IP as string = self.RemoteAddress. However it does not return the client’s IP but the web server’s IP, any ideas?
Hi all,
In the open event of Session, I put: dim IP as string = self.RemoteAddress. However it does not return the client’s IP but the web server’s IP, any ideas?
Not sure it this is the same circumstance as you, but I handle some web requests forwarded via Apache, so to get the real client IP I look at another header item first…
In the session open I first look for self.Header(“X-Forwarded-for”) and if that returns nothing I then use self.RemoteAddress
It doesn’t work either… I deployed my app in cgi mode, according to Xojo doc, not all headers are available in cgi mode.
Which headers are available are determined by your web server when running in cgi mode.
Thanks Greg, will have it a try right away.