jtoomim: I'd connect to the cgminer API exactly like the web interface does when you click the UI buttons. The idea is to "API Allow" connections from all over the LAN, not only from localhost, and you can have a nice monitoring tool.
For home mining users it is OK to allow API access for all over the LAN but it may not be a good idea to allow access to cgminer API from anywhere if you use hosting ...
You can use a ssh connection to your SP10/SP30 and open a tunnel to remote address "-L 4028:localhost:4028" if you want to do remote monitoring but on same time keep cgminer setup with API access only from localhost.
I use this trick to remotely monitor my SP10 located in a data-center.