Use settings for host/port instead of hard-coding it