Server-Side Request Forgery (SSRF) enables an attacker to induce a server to make requests to internal or external resources, potentially accessing or manipulating data and systems that are not directly accessible to the attacker.
To detect if a port or a host is available, you can send a request to it a hundred times and then calculate the average response time. A small difference in response time between an available or unavailable resource can be detected.
Example:
100 requests to 10.10.100.2:8080 divided by 100 = 50ms
100 requests to 10.10.100.2:1337 divided by 100 = 200ms