Added netcfg support. Add server mode.