CC3000 get remote ip

There is a modded Ethernet library to get remote ip: GitHub - per1234/EthernetMod: Modified Arduino Ethernet Library

Does anyone have a modded library for the Adafruit CC3000 that can get client remote ip (TCP)?

Adafruit CC3000 library: GitHub - adafruit/Adafruit_CC3000_Library: Library code for Adafruit's CC3000 WiFi breakouts &c

// Open a "access.txt" for appended writing.   Client access ip address logged.

SdFile logFile;
logFile.open("access.txt", O_WRITE | O_CREAT | O_APPEND);

if (!logFile.isOpen()) error("log");

IPAddress ip1(10,0,0,15);  //Server ip address
IPAddress ip2(10,0,0,146);  //Host ip address

//Do not log Host computer ip
if ((client.remoteIP() == ip2))   //Compare client ip address with Host ip address 
{
	exit;
}
else
{
	logFile.print("Accessed:  ");
	getDateTime(); //get accessed date and time
	logFile.print(dtStamp + " -- ");
	logFile.print(client.remoteIP());
	logFile.print(" -- ");
	logFile.print("Path:  ");
	logFile.println(path);
	logFile.close();
}

William

if ((client.remoteIP() == ip2))   //Compare client ip address with Host ip address
{
	exit;
}

What do you think this code is doing?

@ PaulS

if ((client.remoteIP() == ip2)) //Compare client ip address with Host ip address
{
exit;
}

What do you think this code is doing?

Compares remote client ip address to host ip address. If it is host ip address; exit (do not log.)
remoteIP() is part of the "Modded Ethernet.h library."

If it is host ip address; exit (do not log.)

Read that code carefully. exit; doesn't do anything!