please enable tcp/ip in services in both of the server and enable the remote connection in both of them. first ping with the ip address in command prompt. after that
open the sql server , give the ip address of the other server in the server name and at the login place give the login address and password then try it.
note: this internet should be in local connection only or should be in a same network