You will have to print byte by byte with a for loop or a while loop.
Then cast the byte to an int, like this.
lcd.print ( int(ip[0] );
These two options:
uint8_t ipSize;
ipSize = sizeof (ip);
for ( uint8_t i = 0; i < ipSize; i++ )
{
lcd.print ( int(ip[i] );
lcd.print (".");
}
or brute force printing
lcd.print ( int(ip[0] );
lcd.print (".");
lcd.print ( int(ip[1] );
lcd.print (".");
lcd.print ( int(ip[2] );
lcd.print (".");
lcd.print ( int(ip[3] );
lcd.print (".");