TALLAHASSEE — In a major defeat for Gov. Rick Scott, a California judge on Thursday ordered Google to turn over the computer IP addresses for all correspondence to and from the Florida governor's private Gmail account since Jan. 15, 2011, and the accounts of two of his staffers.

Santa Clara County Superior Court Judge Mary E. Arand ruled that the governor's attempt to quash a request by Tallahassee lawyer Steven R. Andrews was not valid.

"The subscriber information and IP addresses will assist Andrews in determining whether a public official created the accounts, which, in turn, could establish that official agency business may have been transacted from those accounts,'' Arand wrote in a four-page ruling filed on the court website.

Andrews wants the computer company to give him the subscriber identities and IP addresses to help prove his claim that the governor attempted to use the rls.gov@gmail.com account to shield communications from the state's public records laws. When the governor refused to turn over information about the accounts last year, Andrews got a Tallahassee court to approve a subpoena to seek the information from Google. Circuit Court Judge Charles A. Francis also ordered the governor to stop fighting the request.

In September, the governor filed a lawsuit in a Santa Clara County court to prevent Google from releasing information on when the private Gmail accounts used by Scott and two aides were created.

Andrews is also seeking information for the Gmail accounts of Sarah Hansford, the former assistant to First Lady Ann Scott, and Brad Piepenbrink, the governor's former travel aide and now deputy chief of staff.

Arand rejected arguments from the governor's attorney that disclosing the information would invade their privacy and the privacy of third parties because it could identify the location of any computer used to log onto the email accounts.

"In agreeing to the Google privacy policy, Petitioners agreed to the disclosure of their IP addresses to third parties, and by using the accounts to send and receive e-mails,'' Arand wrote.

"Similarly, any third-party who owned a computer from which Petitioners accessed their e-mail accounts would not have a reasonable expectation of privacy in their IP address because they regularly disclose this information every time they use the Internet."

Arand noted that Google is not authorized to release the "content" of the emails but only the subscriber information and IP logs for each communication. A final ruling is expected to be filed by the court next week.

The governor's spokesman, John Tupps, said, "Our lawyers are reviewing it."

Andrews has been in a legal feud with the governor for more than two years. His complaint initially began over a dispute over property near the Governor's Mansion.