Add port and method to config file.