Sql Server CE is not designed to do this. You cannot connect to a Sql Server CE database over a network connection.
If you a truly want to use SQL CE, then instead of having your application directly connect to it, write a Web API / Web Services that provides the Data Layer
and each application can use those to do DB Calls.
Really this should just be replaced by Sql Server Express (or higher), then use the same idea above.