[network] add function to get IP
[server/control] further work on menubar