(Server/Device) Allow type parameter to be null
(Client) Don't har code server host nor port