reply server coding