Basics of server working