MetaTrader API sample #2

 
Dear Ladies and gentlemen

I tried to get the API sample #2 working. I use a demo account. My username and login are correct. The port 443 and 1950 are enabled. In case I use the ip-address from my computer I can connect but not login. The data server “mtdcsrv” is running and tells also “running”.
Trying than to login I get the error message “Some Error”. The same applies when I use the ip-address 66.235.184.162 which I got through “ping demo.metaquotes.net”. Please could anybody advice me what I’m doing wrong.

Thank you for your time and help

Zocker
Reason: