How do i create a simple server

how do i create a simple client and server. And then use the server again as another client to issue another request

how simple? what protocol you intend to use? also, see net package. there are few basic examples.