I fixed the server not being shared, but now the app dumps core when it exits, even if nobody connects.

I got two connections to work though. Then it still crashed on exit.