How to get the current IP in studio.sourcecontrol
I want to achieve the same function as the management portal under the Utilities menu。
I wrote a studio.sourcecontrol menu tool. I want to use chrome to open the CSP page. Now I can open it to CSP, but the IP address is the intranet IP of the cloud server. How can I get the IP of the current studio connection?
Set CompName = $p(InternalName,".CLS")
Set url= ##class(csp.csp.download).%GetParameter("CSPURL")
Set IP = $p($zu(54,13,$zu(54,0)),",") // Intranet IP 。 I want to get the connection IP of the current studio
Set WebPort = ^%SYS("WebServer","Port")
Set Target = "chrome.exe http://"_IP_":"_WebPort_url_"?InternalName="_##class(%CSP.Page).EscapeURL(CompName)_"&Menu=HISUIMGridGen"