import json


def get_config(server, path="connection.config"):
    """
    Static method to get the configuration for the server connection

    :param server: name of server to connect to
    :type server: String
    :param path: path of the configuration file
    :type path: String
    :return: hostname, port
    :rtype: String, Int
    """
    with open(path, 'r') as f:
        c = json.load(f)
    return c[server]["hostname"], c[server]["port"]