Use <arpa/inet.h> for htons()