Search code examples
python-3.xwindowsazurevisual-studio-codeazure-functions

port 7071 is unavailable. Close the process using that port, or specify another port using --port [-p]


I try to run the azure function app (Http Triggerd API) from my local (using VS code). But I'm getting an error "port 7071 is unavailable. Close the process using that port, or specify another port using --port [-p]." I checked the list of ports used using cmd prompt.But 7071 is not in used list. Also tried to run with different port using "func host start --port [p1]", but it throws the same error as above. For all ports it throws the same error. How to resolve this problem?


Solution

  • Its due to the antivirus. After disabling the antivirus it works fine.