IP from web client session

Hi, using these:

Dim sock as New HTTPSocket
Dim result as String

result = sock.Get(“ifconfig.me/ip”, 10)
MsgBox result

Dim My_HTTPSocket As New HTTPSocket
My_HTTPSocket.Yield = True
MsgBox My_HTTPSocket.Get(“http://myip.dnsomatic.com”, 10)

in my app, I only get the IP that is hosting the web app, not my own outside IP.

I am running the dnsomatic in a webpage, and storing it in a session.FullIP string property…

But when reading this when connected to this app, as a outside webapp/page, I only get the IP of my hosting mac and not my local outside IP… what am I doing wrong…

And finaly I have moved all stuff from a global module and into session, so now my app decreases active sessions. Nice.

Hi,

Why not use Session.RemoteAddress ?
http://documentation.xojo.com/index.php/WebSession.RemoteAddress