Found this "Remote IP of TCP Socket" at: https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc3000/f/851/t/380635
I am trying to log the remote ip address of a client. Using Ethernet, I have accomplished remote ip address logging. Trying to do the same with the Adafruit CC3000 library.
Answer provided; does not respond every time with the correct "client.IP". When it is wrong; client.IP is always "client.IP: 0.0.0.0.0" which occurs more frequently than the correct "client.IP" of my computer. Why is does this happen? Is there a solution? Answer is on the right track; need additional help, so client.IP is correct every time.
Edit: File modified is Adafruit_CC3000_Server.cpp Only change was to the clientIndex value. Will this cause an impact on client connecting? File is contained in "Arduino Stack Exchange.zip" linked in this post and is located in the Adafruit_CC3000 folder of the zip. Changes are commented.
Modified files with client ip returned. https://drive.google.com/open?id=0Byo8QWKyqAT9TUt4d0FteENQS2s CC3000.zip
William