Finally got server working