I don't know why I'm not sure if you can do this.
I just want to know for analytics purpose where a connecting client came from. Is that something you would know from say HTTP?
I use PHP right now for backend. I can get IP/requested URL, I just for some reason assumed you can do this. I mean if you think about Google they are running a browser so this information is probably easy to get/makes sense to have.
But I mean when you leave one server, how would another server know which server you were just connected to?