Changed inet_ntoa with inet_ntop