You cannot use server object model, only Client object model if you are running the application on a non-SharePoint server. Server object model only works on the servers.
Please take a look at the second link You only have to reference Microsoft.SharePoint.Client DLL's.