You have to check profile paramters 'icm/host_name_full' and also, your service and port management is controlled by the icm/server_port_XX. You can check the same in OS parameter files (BASIS) or using TCODE RZ11 and check and change it to the right host file name and port.
Make sure this host is reachable using ping and if not or if DNS is not configured, put proper entries in host file.
Check your changed hostname and ports using SMICM