As per my comment: if your script works locally but not remotely, sounds like the script it having trouble getting past a firewall on your side. If you create a rule in your firewall so that it lets out traffic on 1863, you should be good to go.
Hotmail Contact Import Alternate PHP
Question
I got an old script working in local for importing hotmail email address. but can't find it working in live server. Says connection timeout.
Script total detail on: http://blog.outsourcingnepal.com/2013/02/importing-hotmail-contacts-via-php/
Comfortable with alternate idea too.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow