Paul was in the headquarters of Nero's Praetorian guards, not Nero's own residence, though it was near Nero's palace.
Watch the Teaching: How Did the Gospel Reach Into Nero's Palace?