Changed reply_addr from sockaddr* to sockaddr_in
Figured everything out now just to implement the algorithm