Hi Sudheer: Thank you for the reply. so the TSHttpTxnClientAddrGet is the ip after the server accept it, so that is not the real cell phone ip. so that one changes for each request the cell phone makes, right.
Following is what I see in my trace. Then how can I get the real cell phone IP? incomingAddr: 2.0.31.144 clientAddr: 2.0.207.71 incomingAddr: 2.0.31.144 clientAddr: 2.0.207.72 incomingAddr: 2.0.31.144 clientAddr: 2.0.207.73 Cheng Yi 2015-03-03 7:30 GMT-08:00 Sudheer Vinukonda <[email protected]>: > The naming of this API can be a little confusing. Below's what they do: > > > TSHttpTxnIncomingAddrGet - the traffic server accepting connection ip > > TSHttpTxnClientAddrGet - is the cell phone IP > > TSHttpTxnServerAddrGet - is the google ip > > Thanks, > > Sudheer > > ------------------------------ > *From:* 毅程 <[email protected]> > *To:* [email protected] > *Sent:* Tuesday, March 3, 2015 7:14 AM > *Subject:* understanding the incomingIP, clientIP and serverIP > > Hi: > I am using following API to get the ip address. > TSHttpTxnIncomingAddrGet > TSHttpTxnClientAddrGet > TSHttpTxnServerAddrGet > > if I am using a cell phone to access google via traffic server. > my understanding is > incomingIP is the cell phone IP > clientIP is the traffic server accepting connection ip > serverIp is the google ip > But from what I see, I am obviously wrong. > Please kindly help me. > > Cheng Yi > > >
