The prestigious private school where a female teacher allegedly had a sexual relationship with a student can now be identified as Sydney Grammar.

The teacher allegedly had sex multiple times with the 17-year-old, who she taught at the elite school in the inner-Sydney suburb of Darlinghurst.

Sydney Grammar School. Credit:Michele Mossop

An interim court order suppressing the name of Sydney Grammar was in place but it was dropped in the Sydney Downing Centre Local Court on Tuesday.

Magistrate Jacqueline Milledge said it was important that members of the school's community were aware "this matter is afoot".