Taking a step back here, I was assuming that you were running a webserver and SoftPAC on the same PC ("localhost" and "127.0.0.1" mean roughly: "talk to self"). But now it's sounding like you have the webserver on a PC and this strategy running on a connected-nearby R1?
In that case, the comm handle should include the IP address of the PC. You can get this from a command prompt by typing ipconfig.
Guessing that the PC is the same one you use to download the strategy (so we know the PC & R1 can talk to each other)?
BTW, if you're talking to a webserver, you might look into the new-ish commands like HttpGet which could be a little simpler than using a tcp comm handle, especially if you want to do ssl at some point. The "get" command looks like:
nCommStatus = HttpGet(stDstStrTblBody, stDstStrTblHdr, stSrcStrTblHdr, 1, sCommand , nHttpStatus, 443, sURL);
or in your case, unsecured, port 80, perhaps:
nCommStatus = HttpGet( stDstStrTblBody, stDstStrTblHdr, stSrcStrTblHdr, 0, sCommand , nHttpStatus, 80, "you.pc.ip.here" );