s4:web_server: use tsocket_address functions to get the local ip and port