port in network byte order */ struct in_addr sin_addr; /* internet address */ }; /* Internet address */ struct ... in_addr { uint32_t s_addr; /* address in network byte order */ };…