YourNameHere Posted May 9, 2013 Share Posted May 9, 2013 I need to ask my host to open a port for outbound connections via cURL. THey are telling me that they cannot open inbound ports for my hosting package type. I have been told that curl or file_get_contents makes an outbound connection. I can't seem to verify this through the docs unless I am missing something. Can anyone verify before I go back to my host and make a fool of myself? Quote Link to comment https://forums.phpfreaks.com/topic/277853-curl-inbound-or-outbound/ Share on other sites More sharing options...
Solution requinix Posted May 9, 2013 Solution Share Posted May 9, 2013 That's true. Only exception is an active (ie, non-passive) FTP connection. Blocking outbound ports is unusual. Are you sure that's the problem? Quote Link to comment https://forums.phpfreaks.com/topic/277853-curl-inbound-or-outbound/#findComment-1429368 Share on other sites More sharing options...
YourNameHere Posted May 9, 2013 Author Share Posted May 9, 2013 That is what they are telling me. I believe they have most ports blocked unless you request them to be opened. I am trying to use port 12046. Just for clarity, that's true to it being an outbound connection? Quote Link to comment https://forums.phpfreaks.com/topic/277853-curl-inbound-or-outbound/#findComment-1429373 Share on other sites More sharing options...
requinix Posted May 9, 2013 Share Posted May 9, 2013 Yes. Just for clarity, they're telling you that they've blocked outbound connections unless you ask for it and/or that's the reason your stuff is failing? Quote Link to comment https://forums.phpfreaks.com/topic/277853-curl-inbound-or-outbound/#findComment-1429377 Share on other sites More sharing options...
YourNameHere Posted May 9, 2013 Author Share Posted May 9, 2013 (edited) They didnt specify if that was the reason it was failing, but that they "could not open inbound ports for shared hosting packages". After speaking with someone else on the subject that has had to do the exact thing that I am attempting to connect to, they explained that they had to request that hostgator open that port and they stopped receiving that same error (error 7: Could not connect to host) Update: After going back to them explaining that it was an outbound connection and with non-malicious intent, they opened it without hesitation. Edited May 9, 2013 by YourNameHere Quote Link to comment https://forums.phpfreaks.com/topic/277853-curl-inbound-or-outbound/#findComment-1429380 Share on other sites More sharing options...
YourNameHere Posted May 9, 2013 Author Share Posted May 9, 2013 Also, I am no longer getting the failed to connect to the host error. Quote Link to comment https://forums.phpfreaks.com/topic/277853-curl-inbound-or-outbound/#findComment-1429382 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.