Yes I took the port number from sgminer config file, yes api is allowed and I forward the port 4028 trought the router!
This is from sgminer config file:
"api-mcast-port" : "4028",
"api-listen" : "true",
"api-allow" : "W:127.0.0.1",
"api-port" : "4028",
Wait a moment, what router? Do you run the client on mining machine directly?