Northern Ireland will play the Republic of Ireland in a closed doors training match at the Aviva Stadium on 4 June.
The game at the Dublin stadium is being used as a training exercise before vital Euro 2016 qualifiers on 13 June.
Northern Ireland face Pool F leaders Romania at Windsor Park while the Republic take on Scotland at the Aviva.
"Having the game behind closed doors allows us flexibility which we wouldn't have under normal circumstances," said Northern Ireland boss Michael O'Neill.
Northern Ireland, who are second and just a point behind the Romanians, will play Qatar in a 31 May friendly in Crewe before the training match in Dublin.
"It was important for us to get a quality game before the qualifier against Romania and this game provides the perfect scenario on the back of the Qatar friendly," added the Northern Ireland manager.
The Republic will play Northern Ireland before hosting England in friendly on 7 June.
"With the season ending early for a lot of our players, Michael and I discussed it and see this as a mutually beneficial exercise for both sides," said Republic boss Martin O'Neill.
"The Championship season ends on 2 May, and if players are not involved in promotion relegation play-offs, that could be over a month without any games.
"It represents an ideal opportunity to build the intensity of our preparations, leading into the England friendly, and before the important qualifier against Scotland."