added output filename to include server and port.