{"id":66188,"library":"projectdiscovery-freeport","title":"Freeport","description":"A Go library to find a free TCP port for listening.","status":"active","version":"0.0.7","language":"go","source_language":null,"source_url":"https://github.com/projectdiscovery/freeport","tags":["port","network","tcp","utility"],"install":[{"cmd":"go get github.com/projectdiscovery/freeport","lang":"bash","label":"Install github.com/projectdiscovery/freeport"}],"dependencies":[],"imports":[{"symbol":"freeport","correct":"github.com/projectdiscovery/freeport"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/projectdiscovery/freeport\"\n)\n\nfunc main() {\n\tport, err := freeport.GetFreePort()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(port)\n}","lang":"go","description":"Get a free TCP port"},"warnings":[],"env_vars":null,"search_vec":"'find':6 'free':8 'freeport':1 'go':3 'librari':4 'listen':12 'network':14 'port':10,13 'tcp':9,15 'util':16","created_at":"2026-06-17T17:20:26.185096+00:00","updated_at":"2026-06-17T17:20:26.185096+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/projectdiscovery/freeport","github":"https://github.com/projectdiscovery/freeport","docs":"https://pkg.go.dev/github.com/projectdiscovery/freeport#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}