public MainPage()
        {
            InitializeComponent();

            // fill the current IP as server IP, by default
            string ip = new Websocket_Server().getCurrentIP();

            EntryServerIP.Text = ip;
        }
 // start web socket server
 void StartServerClick(object sender, System.EventArgs e)
 {
     server             = new Websocket_Server();
     server.logDelegate = doLog;
     server.start(EntryServerIP.Text, 9500);
 }