I have the following query about the tcp handshake.
To establish a connection the server must send a packet with SYN flag to 1 Then the server replies with a SYN,ACK flag to 1 , and afterwards the host (client) replies with ACK flag to 1 and SYN 0.
But to terminate a connection does the host send first termination or the server? Also if its the server is does the server send ACK , FIN to 1 and host replies with ACK 1 and FIN 0?