this code is working good, but my problem is i need to use domain as server address. how can i do that