I did'nt understand completely. But I noticed that if i do $opts = array('http' => array('proxy' => 'tcp://10.3.100.212:8080', 'request_fulluri' => true)); $context = stream_context_set_default($opts); fopen, file_get_contents, etc. are working fine, but fsockopen is not KK.