Sure all the commercial proprietary ones are hard coded to only communicate with the operators own servers, which are running their proprietary backend services. Sure you're not going to be able to make something like a Wechat or Whatsapp backend run on your own server. There's open source chat apps though, usually based on XMPP like Jabber, you can do what you like with them such as running on your own personal server.