I am building a chat application based on websocket protocol.I am uploading this on an apache server and i am getting this error :
"Warning: socket_bind() [function.socket-bind]: unable to bind address [98]: Address already in use"
I am using port no. 12346. When i checked this port's status i got "12346 is not responding".
I have checked many ports on my remote server ,none of them is responding.So please tell me how to check if there is a usable port which i can use??
I have also used port 80 and 443 but i am getting the error:
Permission Denied
I see that that you're using apache - this is most likely the problem. You need to run the script as a deamon or at least from a shell, and you will need root privileges for ports under 1024 unless you're on a windows host.
Related
it shows the following errors :-
mysqli_real_connect(): (HY000/2002): A socket operation was attempted
to an unreachable host.
Connection for controluser as defined in your configuration failed.
mysqli_real_connect(): (HY000/2002): A socket operation was attempted
to an unreachable host.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
This error indicates that the network was not connected or not configured correctly. It is definitely an error on the client machine, not your server.
There isn't much you can do to "solve" the problem. Pretty much all you can do is upgrade the client's network drivers and check for connection problems (maybe they're barely within wireless range, or the Ethernet cable is missing its locking tab).
I just noticed this warning in the MySQL Workbench log:
[Warning], IP address '112.30.xxx.xxx' could not be resolved: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
What does it mean? I have the MySQL port firewalled so that any incoming TCP traffic is blocked. Any ideas where this is coming from? How to I eliminate the warning?
Just as rtfm said it means your DNS failed to resolve the IP, And means that the local server did not receive a response from an authoritative server.
Please also reference:
https://serverfault.com/questions/393862/mysql-warning-ip-address-could-not-be-resolved
I'm trying to connect to a remote Firebird database "test" (alias already added). It is not an embedded server, and is installed on VM with IP 192.168.1.147.
Here is my connection string:
User=sysdba;Password=masterkey;Database=test;DataSource=192.168.1.147
However I got an error:
FirebirdSql.Data.FirebirdClient.FbException (0x80004005): Unable to complete network request to host "192.168.1.147". ---> Unable to complete network request to host "192.168.1.147".
I've done some research on that but haven't got a clue yet. Some help needed. Thanks
My IP address is 192.168.2.108, and I can ping that server IP successfully
Make sure that
Firebird is running
Firebird is listening on port 3050 on the specified IP (or on 0.0.0.0)
Your firewall allows access to port 3050
You're using the correct host name
For Linux, the Firebird port is closed by default. You need to modify RemoteBindAddress in /etc/firebird/2.5/firebird.conf from
RemoteBindAddress = localhost
to
RemoteBindAddress =
and restart service.
Make sure you have excluded tcp port 3050 in VMs' firewall.
Ok. I think your connection to firebird is faililing because the firebird client looks up the network service file by name and does not find gds_db in the services file.
If your connection string refers to the host by using IP, the Client might fail to identify it because it gethostbyname() and not by IP
Manually include this in the file and you should be fine.
C:\windows\system32\drivers\etc\services
I've tried using Microsoft WebMatrix and XAMPP but, not matter what I do or what workaround I try, I cant get PHP and MySQL working.
When I install XAMPP, there is a conflict with port 80 so Apache wont start. Then I change the port that it listens to to 9260 and it starts. But after I do this http://localhost:9260/phpmyadmin/ gives me the following errors and wont allow me access
#1045 - Access denied for user 'root'#'localhost' (using password: NO),
Connection for controluser as defined in your configuration failed.
phpMyAdmin tried to connect to the MySQL server, and the server
rejected the connection.You should check the host, username and
password in your configuration and make sure that they correspond to
the information given by the administrator of the MySQL server.
I've been trying to fix it for days and I'm driven around the bend. Any help would be greatly appreciated!
Port 80 Issue:
Most likely you are running Skype or some other software which already uses port 80. Solution:
Open Actions - Options
Expand Advanced
Click Connection
Uncheck "Use Port 80 and 443 as ...."
Refused connection:
In the majority of cases localhost as host is correct. If you are sure, that there is no default password set for root user, your host is not correct - try:
127.0.0.1
mySQL-Server Network IP
mySQL-Server Name (server.mydomain.eg)
Man if you're using skype just start the XAMPP then skype.
REMEMBER ONE SERVICE PER PORT. Skype switches to another port automatically.
My project uses PHP JavaBridge, I have installed WAMP, JRE 6.0, and Tomcat 6.0.32
I can now access http://localhost:8080/ successfully but when I run my PHP site it gives me the following error
warning: fsockopen() [function.fsockopen]: unable to connect to localhost:8080 (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. )
Can anyone please help me with this issue?
EDIT
Forgot to mention that I am using Windows 7
My comment above worked as a solution and hence this answer, so that in future others get it.
Can you 127.0.0.1:8080 instead of localhost:8080? See what do you get?
fsocketopen takes the hostname and it should be a valid domain, in your case, (in general) it could be a valid domain as long as you have an entry for localhost in your hosts file (C:\Windows\System 32\drivers\etc\hosts). See if you have something similar to that.