Ip and port should be casted to string.