but the proper syntax is like
scp hostname@ip: / location of the file location of the file in host system
eg: i copy t.txt from host to server
scp x.server.com@192.168.4.10:/home/server/Desktop/t.txt /home/host/Desktop/r.txt(doesnt works)
scp server@192.168.4.10:/home/server/Desktop/t.txt /home/host/Desktop/r.txt(works).
Hostname it just name of machine and its for identification,login name is based on local account of the machine or if it is domain then this will be domain account.