Grafana Alloy loki.source.api

From the below link it states that on using the config for loki.source.api , it will open an http connection,but it does not open connection for me. Is there any settings to be changed on the windows server or during alloy installation

loki.source.api “loki_push_api” {
http {
listen_address = “0.0.0.0”
listen_port = 9999
}
forward_to = [
loki.write.endpoint.receiver,
]
labels = {
forwarded = “true”,
}
}

What makes you think the port isn’t open?

If you are running containers make sure you have port mapping enabled from Docker’s end.

I am running alloy on a windows machine as a binary and not using docker.

I have made some corrections in configurations and it worked