create some variables that will be used.
create a socket and print some helpful error if somethign goes wrong.
Now we ned to bind the socket to a socket address, so fisrt crrate an internet address and bind it to socket
once our socket is bound to the address make it listen to the incoming connections using listen()
now accept any incoming connection using accept
and send back the response that is recieved
put all of the above code in main functionso that we have :