How can I get Api path from go-ipfs in linux?

How can I get API path from cloud server with go-ipfs, for ipfs-http-client in frontend?

Basically I try to make create from url, gateway api link works fine, but when I try pass cloud IP where is go-ipfs, I have timeout. I got ports opened, please help.