Cannot retrieve license. Connection refused

So everything is running on the same system, but in AWS. It is deployed in a private subnet, so only has a private IP. When I originally had localhost in the config files, I was not able to access Kibana. The log in my original post is from running functionbeat -e -d "*".

kibana.yml has the following set:
server.host: "172.18.2.76" << when I set this to localhost, I cannot access kibana
elasticsearch.hosts: ["http://localhost:9200"]

Everything in elasticsearch.yml is the default.

curl http://172.18.2.76:9200 returns:
curl: (7) Failed to connect to 172.18.2.76 port 9200: Connection refused

curl http://localhost:9200 returns:

    {
      "name" : "ip-172-18-2-76",
      "cluster_name" : "elasticsearch",
      "cluster_uuid" : "-aTkeTgzT-66zr-p3o6Dsw",
      "version" : {
        "number" : "7.3.0",
        "build_flavor" : "default",
        "build_type" : "deb",
        "build_hash" : "de777fa",
        "build_date" : "2019-07-24T18:30:11.767338Z",
        "build_snapshot" : false,
        "lucene_version" : "8.1.0",
        "minimum_wire_compatibility_version" : "6.8.0",
        "minimum_index_compatibility_version" : "6.0.0-beta1"
      },
      "tagline" : "You Know, for Search"
    }