How to auto-detect the baudrate at which the other end runs?

When PC communicates with 8051,the settings of serial port on PC is up to user.Is there any good ways to know this settings on 8051?
Thanks.

Ricky

More questions in this forum