fix bug with convert char * serveport to int in the hookserver function