Try running the process from the web server. This will rule out connectivity issues.