Koday, of no fixed address, originally from Eritrea, was handed a £100 fine, which was written off as he had spent two days in custody.
He pleaded guilty to 'entering a security restricted area of an air navigation installation without permission of the manager or person in charge'.
Prosecutor Nick Smart told the court that on January 18 at 7.05pm, police received a call from airport staff reporting a 'possible breach of security'.
"An unknown male was located without authorisation in a part of the airport which members of the public do not have access to, namely Airfield and Stand 202, at Terminal 2," Mr Smart said.
"Police attended and he was arrested on suspicion of being an unauthorised presence in a security restricted area under Section 21C of The Aviation Security Act 1982."
Koray was said to have no previous convictions.
Defence lawyer John Mitchell said: "He has been in the UK since 2014 and does have indefinite leave status.
"In recent months, he has become homeless.
"He tells me he has no travel documents and he took the decision to enter the airport and go airside in an attempt to get on a plane back to Eritrea.
"He is not in receipt of benefits or employment.
"He wishes to return to Eritrea given the proper application and he would still be able to go to the airport provided he had the relevant documents, nothing has been imposed to stop him from going to Eritrea."