Details
- 
        Type:
Monitor
 - 
        Status: Closed
 - 
            Priority:
 Major
                
             - 
            Resolution: Done
 - 
            Affects Version/s: None
 - 
            Fix Version/s: 2021
 - 
            Component/s: FIWARE-TECH-HELP
 - 
            Labels:
 
- 
                        HD-Chapter:IoT
 - 
                        HD-Enabler:IDAS
 
Description
Created question in FIWARE Q/A platform on 12-02-2017 at 00:02
Please, ANSWER this question AT https://stackoverflow.com/questions/42182689/fiware-iot-agent-error-on-creating-service-and-registration
Question:
Fiware iot agent error on creating service and registration
Description:
i am a fiware user and i have created an iot agent on an ubuntu 14.04 empty vm and when i send a create service or a device registration request ,  i get an error. And i've made sure that the ports listen properly and i've also allowed tcp connection on the port 4061. and also get an error whenever i send the reuest . 
here's the create service request
(curl H 'content-type: application/json' -H 'fiware-service: bla770' -H 'fiware-servicepath: /howtobla770' -X POST 'http://217.172.12.243:4061/iot/services' -d @ ) << EOF
{
    "services": [
    ]
}
EOF
and this is the error which i get .
connect to 217.172.12.243 port 4061 failed: Connection timed out
- Failed to connect to 217.172.12.243 port 4061: Connection timed out
 
Although i have allowed  the port 4061 through the firewall by the command 
sudo ufw allow 4061
2017-05-22 21:06|UPDATED status: transition Answered| # answers= 1, accepted answer= False