Adding serverHost and portNum to buffer