Added the server to consoledemo code