Foreigners sought refuge at the Primrose police station on Wednesday night saying they were terrified, Gauteng police confirmed.
Attacks and vehicle stonings marked fresh xenophobic violence in Johannesburg.
“The group of  foreign nationals went to the police station saying they are afraid for their lives,” said Lieutenant-Colonel Lungelo Dlamini.
Earlier, groups of people had gathered in the Jeppestown section of Jules street, near the Wolhuter Hostel, and threw stones at passing cars.
White motorists were attacked by roaming black mobs and reporters on the scene saw mobs running up to passing cars and trying to force their doors open.
An Ethiopian man was also filmed having a brick thrown at him, News24 reported.
In Dobsonville, to the west of Johannesburg, two Somalis were attacked and robbed in their shop.
One of the men was thought to have been pistol whipped and the other hit by a glass bottle.
The SA Police Service and Metro police said they would be monitoring the city and surrounds on Thursday to prevent any violence.
President Jacob Zuma called for calm in special pre-recorded messages broadcast on public radio and television, after five people were killed in clashes between foreigners, locals and police in Durban since Friday.
Zuma will make a statement in the National Assembly on Thursday afternoon on the xenophobic violence which has swept across KwaZulu-Natal, ANC chief whip Stone Sizani said on Wednesday night.
“President Zuma is scheduled to make a statement on the unfortunate violence ahead of him taking oral questions in the National Assembly Thursday afternoon,” Sizani’s office said in a statement.
“After the President has delivered his statement, all political parties represented in the National Assembly will have an opportunity to make their declarations in reaction to the statement.”