Ravana eventually returned to Gokarna to perform the intense tapas, which later earned him the boons from Brahma that made him invincible to everyone but humans. Thus Vishnu was later able to incarnate as Rama in order to defeat Ravana. But that story doesn't mention in Valmiki Ramayan or other Ramayana except for Ananda Ramayan and many scholars rejected that story.