ICouldn't connect to IPFS daemon at http://127.0.0.1:5001/api/v0/version

IPFS node running locally (http://127.0.0.1:5001/webui). using postman i am getting response for this (http://127.0.0.1:5001/api/v0/version) address . but while running program is showing not connected (Is IPFS running??)