"...I know inet_ntoa is deprecated..."

Then, why don't you start using using inet_pton() or inet_ntop() functions rather tha discuss about wannabes jobs? Also, are you using a hacking library...