Changed method to retrieve device name

Changed to assume that the client will send its name when establishing
connection because RemoteDevice is to slow on windows and doesnt work on
mac at all.