The KDC cannot run on localhost. You can run everything on one machine, but you need to use a real network interface and make sure your clients talk to the kdc over that real network interface.