unable to connect to chat.facebook.com:5222 XMPP - php

I am making facebook chat api with xmpp. I have downloaded the code from http://developers.facebook.com/docs/chat/
But, I m getting error
Test platform connect for XMPP
access_token: <access_token_code>
server: chat.facebook.com
uid: 100002805874899
app id: 434781259869574
[INFO] Opening connection...
Warning: fsockopen() [function.fsockopen]: unable to connect to chat.facebook.com:5222 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\domains\telecomlijn.nl\wwwroot\wordpress\fbchat.php on line 52
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)
An error ocurred
Below is my code
please help me out to fix the bug and run the app successfully...

Related

I am having this error issue when I try to reset the password using laravel jetstream

Connection could not be established with host smtp.mailtrap.io :stream_socket_client(): Unable to connect to tcp://smtp.mailtrap.io:2525 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond)" this is the error message that is displayed
It’s related to your environment file .env and the email setup. Its going to need to be debugged as to what the email setting should be and then if they emails are even getting out from your server/localhost.

AWS RDS php connection

I can't connect to MySQL RDS instance on AWS through php. It gave me this error:
Warning: mysqli::__construct(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\xampp\htdocs\RESULTS\conne\New Text Document.php on line 7
Connection failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Could you please help me to get through. I am new to AWS and stuff. So I would be much thankful if you could describe this issue in detail.
Is it possible that you do not have the ip address of the server hosting your php application whitelisted under your rds security group? Something like this: https://stackoverflow.com/a/21498471/6763406

socket connection between c server and PHP client

I trying to establish a socket communication from PHP client to C target, But I am always getting warning error as below:
Warning: socket_connect(): unable to connect [10061]: No connection could be made because the target machine actively refused it.
Note:
I am already tried the links:
http://www.pmoghadam.com/homepage/HTML/c-php-unix-domain-socket.html
socket_connect(): unable to connect [10061] - target machine actively refused it

File_get_content error

I have tried hosting it on a VPS/web Host and some VPS it works my script and some it gives this error:
Warning:
file_get_contents(http://xip.xxxxx.org/xxxx/../aaaada23.php?user=rawr&host=127.0.0.1&port=3074&time=10&ip=127.0.0.1&power=1)
[function.file-get-contents]: failed
to open stream: A connection attempt
failed because the connected party did
not properly respond after a period of
time, or established connection failed
because connected host has failed to
respond. in
C:\xampp\htdocs\login\boot.php on line
163 Script bad error
Why do I get that error? Could it be DNS?
it means that the domain you're trying to reach is down, unreachable.
it could also mean that the networking/sockets are down on your machine.
Probably winsock error: http://msdn.microsoft.com/en-us/library/aa924071.aspx

Unable to Connect error with Zend_Rest_Client on localhost

I am using Zend_Rest_Client to connect Zend_Rest_Server, everything seems to be alright, but when I try to get() from the server I recieve this error:
Zend_Http_Client_Adapter_Exception:
Unable to Connect to
tcp://localhost:80. Error #10060: A
connection attempt failed because the
connected party did not properly
respond after a period of time, or
established connection failed because
connected host has failed to respond.
in
C:\www\zf_1_72\library\Zend\Http\Client\Adapter\Socket.php
on line 148
here is code, which I use
$client = new Zend_Rest_Client('http://localhost/my_application/api/index/');
$client->auth($key);
$result = $client->get();
thank's for any advice
This thread suggetss the issue may be with the 'localhost' name - try using 127.0.0.1 instead.

Categories