server: used named (vs inline anon) functions

and add aliases for host and port (increase readability)