Can't connect RFCOMM socket: Connection refused
I am trying to use my mobile as bluetooth modem but I am stuck at the initial step.
shadyabhi@archlinux-N210 ~ $ rfcomm connect 0
Can't connect RFCOMM socket: Connection refused
My rfcomm.conf:
rfcomm0 {
# # Automatically bind the device at startup
bind yes;
# # Bluetooth address of the device
device 00:25:47:9F:AA:07;
# # RFCOMM channel for the connection
channel 2;
# # Description of the connection
comment "Nokia N73";
Guyz, please help me solve the issue. I have tried googling but no luck. And I already have my laptop as trusted devices in my phone.
i don't know how and why but appeared a new device on my phone called "james1711" and with this my pin is accepted when i type rfcomm connect 0; but after one minute of trying to connect appear another error in the shell:
Can't connect RFCOMM socket: Resource temporarily unavailable
Similar Messages
-
I am getting this error when email comes in
I have tried setting up a new mail database on a different drive but it hasnt helped at all.
<[email protected]>, relay=none, delay=0, status=deferred (delivery temporarily suspended: connect to /maildat/socket/lmtp[/maildat/socket/lmtp]: Connection refused)
I have checked the .conf files that referenced the previous mail database to make sure they changed, and they had indeed changed to point to the new files. but so far... nothing.absolutely...
postconf
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debugpeerlevel = 2
enableserveroptions = yes
html_directory = no
inet_interfaces = all
luser_relay = bounceuser
mail_owner = postfix
mailboxsizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
messagesizelimit = 12582912
mydestination = $myhostname,localhost.$mydomain,memphisdns.com
mydomain = memphisdns.com
mydomain_fallback = localhost
myhostname = memphisdns.com
mynetworks = 192.168.0.0/24,216.37.68.34,216.37.68.45,127.0.0.1
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpdpw_server_securityoptions = plain,login
smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
smtpdsasl_authenable = yes
smtpdtls_certfile = /etc/certificates/Default.crt
smtpdtls_keyfile = /etc/certificates/Default.key
smtpduse_pwserver = yes
unknownlocal_recipient_rejectcode = 550
virtualmailboxdomains = hash:/etc/postfix/virtual_domains
virtual_transport = lmtp:unix:/var/imap/socket/lmtp
imapd.conf
admins: cyrusimap
configdirectory: /Volumes/netdat/post/database
partition-default: /Volumes/netdat/post/store
unixhierarchysep: yes
altnamespace: yes
servername: memphisdns.com
quotawarn: 80
sievedir: /usr/sieve
sendmail: /usr/sbin/sendmail
lmtpdowncasercpt: 1
popauthgssapi: yes
tlscertfile: /etc/certificates/Default.crt
logrollingdays: 30
imapauthlogin: yes
logrolling_daysenabled: false
popauthapop: yes
enablequotawarnings: yes
lmtpover_quota_permfailure: yes
tlskeyfile: /etc/certificates/Default.key
imapauthplain: yes -
Socket Listener - Exception (Connection refused, reset)
Dear All,
We are developing a Socket Listener for an application. when we try to check the performance the below errors came.
Code
public static void main(String[] args) {
ServerSocket ss = null;
Socket s = null;
try {
ss = new ServerSocket(Integer.parseInt(property
.getProperty("SERVER_PORT")), 1500 );
while ((s = ss.accept()) != null) {
Thread current = new Thread(new ServerSocketListener(s));
current.setDaemon(true);
// start the user's thread
current.start();
} catch (Exception exp) {
exp.printStackTrace();
Exception 1
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at srm.ServerSocketListener.run(ServerSocketListener.java:143)
at java.lang.Thread.run(Unknown Source)
Exception 2
java.net.SocketException: Connection reset
Test
Invoking the Socket Server Listener with 1500 client (Java and .NET) requests.
Then the above exceptions occurred.
Help me
1) Maximum client a port can supports?
2) Is there any code or property change required?
3) any other wayThread current = new Thread(new ServerSocketListener(s));
java.net.ConnectException: Connection refused: connect Nothing is listening at the host:port you are trying to connect a new socket to.
at srm.ServerSocketListener.run(ServerSocketListener.java:143)You are trying to create a new Socket inside the ServerSocketListener. Why? You already have a connected socket.
java.net.SocketException: Connection resetStack trace please. This usually means you have written to a connection that has already been closed by the other end, but there are other possibilities.
1) Maximum client a port can supports?Please restate your question in standard english.
2) Is there any code or property change required?Required for what?
3) any other wayAny other way to do what? -
Sockets: Connection refused: connect
Hello,
I try to create to apps one is server the other client
I inserted the code below.
This is the server code:
ServerSocket serverSocket = new ServerSocket(87);
Socket s;
s = serverSocket.accept();
boolean b = true;
while (b)
s = serverSocket.accept();
System.out.println("Connection from " + s.getInetAddress().getHostName());
BufferedReader bf = new BufferedReader(new InputStreamReader(s.getInputStream()));
BufferedWriter br = new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));
BufferedReader consoleReader = new BufferedReader(new InputStreamReader(System.in));
ObjectOutputStream oo = new ObjectOutputStream(s.getOutputStream());
String str = bf.readLine();
if (str != null)
System.out.println("Incomming message: " + str);
String consoleInput = consoleReader.readLine();
if (consoleInput != null)
oo.writeObject(consoleInput);
oo.flush();
else
if (consoleInput.equals("stop"))
oo.writeObject("Server will stop");
oo.flush();
b = false;
}This is the client:
Socket client = new Socket("localhost",87);
BufferedReader br = new BufferedReader(new InputStreamReader(client.getInputStream()));
boolean b = true;
while (b)
String str = br.readLine();
if (str != null)
System.out.println("receive message: " + str);
if ( str.equals("Server will stop"))
b =false;
}The server starts up. But the client gives an java.net.ConnectException: Connection refused: connect
Client is only listening to what the server is sending.
The server send what's entered on the console.
Can somebody tell me what I'm doin wrong?
Thanks a lot
DriesHere are the exact files that I used and are running on my machine:
// Client.java
import java.io.*;
import java.net.*;
public class Client
public static void main(String args[]) throws Exception
Socket client = new Socket("localhost",6655);
BufferedReader br = new BufferedReader(new InputStreamReader(client.getInputStream()));
boolean b = true;
while (b)
String str = br.readLine();
if (str != null)
System.out.println("receive message: " + str);
if ( str.equals("Server will stop"))
b =false;
//Server.java
import java.io.*;
import java.net.*;
public class Server
public static void main(String args[]) throws Exception
ServerSocket serverSocket = new ServerSocket(6655);
System.out.println("Bind done");
Socket s;
s = serverSocket.accept();
boolean b = true;
while (b)
System.out.println("Connection from " + s.getInetAddress().getHostName());
BufferedReader bf = new BufferedReader(new InputStreamReader(s.getInputStream()));
BufferedWriter br = new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));
BufferedReader consoleReader = new BufferedReader(new InputStreamReader(System.in));
ObjectOutputStream oo = new ObjectOutputStream(s.getOutputStream());
String str = bf.readLine();
if (str != null)
System.out.println("Incomming message: " + str);
String consoleInput = consoleReader.readLine();
if (consoleInput != null)
oo.writeObject(consoleInput);
oo.flush();
else
if (consoleInput.equals("stop"))
oo.writeObject("Server will stop");
oo.flush();
b = false;
}Then, in one window, start "Server" and another start "Client". It works for me on Windows 2K system. -
/var/imap/socket/lmtp: Connection refused
Hi,
I have problem with lmtp daemon. How can I a execute it manually?
I've executed:
serveradmin stop mail; serveradmin start mail;
killlall lmtpd lmtp; postqueue -f
But ... nothing works ...
Mails arrived but don't delivered to the mailbox because of the following error:
6FB133AA6609 1181 Tue May 5 20:45:05 email_account
(delivery temporarily suspended: connect to hansolo.galenics.net[/var/imap/socket/lmtp]: Connection refused)
I've try sudo -u _cyrus /usr/bin/cyrus/bin/lmtpd but nothing ...
Any Suggestion?
Thanks for all.Hi
Apart from the fact it could be any one of at least a dozen things the usual thing would be to do a search of the Mail Forum fist. This has been discussed before. Also its a good idea to post the umodified output of postconf -n.
A quick search for this year alone reveals:
http://discussions.apple.com/thread.jspa?messageID=8801406�
http://discussions.apple.com/thread.jspa?messageID=9065994�
http://discussions.apple.com/thread.jspa?messageID=9302503�
http://discussions.apple.com/thread.jspa?messageID=8802455�
That's not all. Search parameters I used:
http://discussions.apple.com/search.jspa?threadID=&q=%2Fvar%2Fimap%2Fsocket%2Flm tp%3AConnectionrefused&objID=f1236&dateRange=thisyear&userID=&numResults=15&rankBy=10001
Start from here and if these don't help keep posting and hopefully some of the more abler contributors might be able to help?
Tony -
Socket connection refused - please help!!!!
My socket programs dont work in linux it shows error -
ot@localhost winc]# java parser
Exception in thread "main" java.net.SocketException: Invalid argument or cannot assign requested address
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:124)
at parser.main(parser.java:10)
Even the basic client server programs show this kind of error in linux. what is the cause for it? And the same programs work perfectly when run in windows. i have removed the firewall settings etc and it still doesnot work in linux
Please help me solve the problem . it is very urgent.Actually i don't know how the firewall can cause the problem, can u please explain me.
Here is the stack trace.
INFO: Thread-3::Wed Dec 03 11:27:00 EST 2008 : resetConnection-->Connection couldn't be established with the Outbound message receiver at: 157.21.29.121:4996
Dec 3, 2008 11:27:05 AM com.lsc.hl7.handler.THOutboundProperties log
INFO: Thread-3::Wed Dec 03 11:27:05 EST 2008 : resetConnection-->Trying to reconnect[in IOException]........
The Message is: Connection refused: connect
The exception trace is :
java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.PlainSocketImpl.doConnect(Unknown Source)
java.net.PlainSocketImpl.connectToAddress(Unknown Source)
java.net.PlainSocketImpl.connect(Unknown Source)
java.net.SocksSocketImpl.connect(Unknown Source)
java.net.Socket.connect(Unknown Source)
java.net.Socket.connect(Unknown Source)
com.lsc.hl7.handler.THOutboundConnHandler.resetConnection(THOutboundConnHandler.java:129)
com.lsc.hl7.handler.THOBHandlerThread.sendMailAndLogAboutORUReceiverConnectionLoss(THOBHandlerThread.java:199)
com.lsc.hl7.handler.THOBHandlerThread.run(THOBHandlerThread.java:118) -
My TV is mounted on a wall so I can't connect the Apple TV device. Is it possible to connect to an HD Cable Box and send signal to TV that way? Other problem is that Box only has one HDMI socket so would also have to use a splitter. Tried Apple Support but couldn't offer a solution. I can't be the only person with this issue surely?
Help!No, unless you are using a home theatre system already, your only option is to connect to the TV.
-
remote desktop connection manager on windows 8.1, can't connect to windows server 2012 R2, Socket closed each time i try to open remote connection to the server,
does remote desktop connection manager V2.2 not compatible with windows 8.1, and if so, is there are any other compatible versions
or what's the problem,
Mahmoud Sabry IT System Engineerthis issue maybe will be fix by latest version, we still waiting for it
maybe your issue can be fix using this methods
https://social.technet.microsoft.com/Forums/windowsserver/en-US/61f218a5-5ef8-49da-a035-90cdd64fc9a0/problem-with-remote-desktop-connection-manager-error-3334?forum=winserverTS
http://shawn.meunier.com/?p=1#comment-43 -
I can't connect to the iTunes Store because the network connection was refused.
I can't connect to the iTunes Store because the network connection was refused. I'm using a laptop with Windows 7 Ultimate.
Hi ChanTwo,
Welcome to the Support Communities! The article below will help you troubleshoot the issue you are having with the connection issue you are having with the iTunes Store:
Can't connect to the iTunes Store
http://support.apple.com/kb/TS1368
iTunes: Advanced iTunes Store troubleshooting
http://support.apple.com/kb/TS3297
I hope this information helps ....
- Judy -
Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'
I'm using the pre-installed versions of php and mysql under Mac OS X Server 10.4.4 running on a G4 and am unable to get anything involving mysql to work.
I ssh to the server and enter various commands in Terminal:
on typing "mysql" I get
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
and on typing "mysqladmin version" I get
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/mysql/mysql.sock' exists!
On typing "sudo mysqld_safe" I get
Starting mysqld daemon with databases from /var/mysql
STOPPING server from pid file /var/mysql/MyServer.local.pid
070722 16:06:05 mysqld ended
/var/mysql/MyServer.local.err contains
070722 16:06:04 mysqld started
070722 16:06:04 [Warning] Setting lowercase_tablenames=2 because file system for /var/mysql/ is case insensitive
070722 16:06:04 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
070722 16:06:05 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 43634.
/var/mysql has permissions 775.
The line
mysql.default_socket = /var/mysql/mysql.sock
is in /etc/php.ini
whereis mysqladmin ->
/usr/bin/mysqladmin
whereis mysql ->
/usr/bin/mysql
ls /var/mysql ->
MyServer.local.err
ib_logfile1
mysql
ib_logfile0
ibdata1
test
Can't find my.cnf or my.ini anywhere
Can't find mysql.sock anywhere
I'm trying to get a bug database running (mantis) under Mac OS X Server 10.4.4 that I can access from local clients.
I'm trying to follow directions at http://www.mantisbugtracker.com/manual/manual.installation.php
without knowing anything about mysql or php and I'm stuck on step 3:
"Next we will create the necessary database tables and a basic configuration
file."
I get a message saying
"Does administrative user have access to the database? ( Lost connection to MySQL server during query )"
I don't even know if following the mantis directions has resulted in the creation of a database or not. Where would it be?
Thanks for any help.
Intel iMac Mac OS X (10.4.10)I've just done a clean install of OSX Server and added the latest MYSQL packaged installer. Afterwards I found the lock file in /private/tmp/mysql.lock
The easiest way to solve this problem is to create a symbolic link so that the lock file appears to be in right place.
e.g.
cd /var
sudo mkdir mysql <== this assumes the directory is missing
cd mysql
sudo ln -s /private/tmp/mysql.sock mysql.sock
After this msql commands should work fine, and you've not fiddled with the security settings on users/groups.
HTH
Christian -
Dear Fellas:
I received "database error #2002 can not connect local mysql server to socket through '/var/run/mysqld/mysqld.sock'(2)" on mac os x 10.9.2.
mysql info:
ps -ef | grep mysql
0 66 1 0 11:06AM ?? 0:00.04 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql
74 225 66 0 11:06AM ?? 0:02.50 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/Chuans-MacBook-Pro-2.local.err --pid-file=/usr/local/mysql/data/Chuans-MacBook-Pro-2.local.pid --socket=/var/run/mysqld/mysqld.sock
501 952 947 0 3:52PM ttys000 0:00.00 grep mysql
Please help!!Fascinated and guessing:
Something related to sock(2) because that's not part of your copied info. I'm thinking you've doubled up on sockets and the second socket doesn't exist, meaning you should be connecting to the first socket "mysqld.sock" whether automatic or not.
I've only used GUI tools on purpose, so does this mean you've already got MySQL running and you tried to launch it again manually? Perhaps you already have one instance of a db and you're trying to launch a second instance, and the two can't coexist with a single user local db?
Assuming this is all local, I'd shut down the db service and restart it, out of hand. I've seen similar messages when I set the db to start up on boot, and it didn't finish shutting down when I tried to restart it manually. Usually the GUI won't let me turn it on because it reports it's already running, but in that case it hadn't finished performing what the GUI was reporting.
Just speculating. -
"Can't connect to local MySQL server through socket '/tmp/mysql.sock'"
Data Services=3.1
Repository=12.2.2.0000
Red Hat Enterprise 5
Designer,Job Server,Job Engine=12.2.2.3
After an unscheduled server reboot with DS up and running when trying to start a job in either Data Services Management Console or DS Designer getting the following:
"Can't connect to local MySQL server through socket '/tmp/mysql.sock'"
The mysql.sock have never been in /tmp and on the production server it does not exist there and the production server is up and running correctly. If a link is created to mysql.sock(/home/user/boedge31/bobje/mysql) the job will start but return this message:
"Cannot retrieve <Version> from the repository. Additional database information: <SQL submitted to ODBC data source <localrepo> resulted in error <MySQL ODBC 3.51 Driver mysqld-5.0.46-enterprise No database selected>. The SQL submitted is <select VERSION, SECURITYKEY, GUID from AL_VERSION where NAME = 'Repository Version'"
I checked and AL_VERSION and the Version field exist.
Before the shut down DS was working correctly and had no issues. My best guess is a part of the repository was corrupted during the unscheduled shut down. It seems like DS has "forgotten" some of the settings.
Any suggestions on a possible solution?The issue has been solved.
There was a bad path in $LD_LIBRARY_PATH.
Removed the path and DS started working again. -
I set up mac mini and when I test the mail server by sending a mail from administrator to administrator I get the error message 'Diagnostic-Code: X-Postfix; connect to 127.0.0.1[127.0.0.1]:10024: Connection refused'. Can any one suggest a solution
Thanks. Where could I possibly look for a firewall rule. I knowingly did not creat any. My system has internet coming to a Modem which then is connected to a wireless router. I have computers connecting to the router through cable as well as wireless. One of these computers has been our mailserver using Mercury and Pegasus and that computer has a static IP address. The Mac Mini also has been assigned a different srtatic IP address. I have only set up user account, none of them an email account as I initially expect them to receive only internal mails. Is it necessary that I must set up an email id for each user while setting up the user account. My server id is server.local. So would the email id for local users be [email protected]?
-
PHP can't connect to MySQL socket
Since upgrading from 10.4 to Leopard 10.5, PHP can no longer connect to MySQL. It gives the error:
+Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'+
I've read the threads and the following Technical Article:
http://docs.info.apple.com/article.html?artnum=301457
The problem is that none of the solutions are working!
I can see that MySQL is creating a socket at:
/tmp/mysql.sock
1. So in /etc/apache2/httpd.config I set:
mysql.default_socket = /tmp/mysql.sock
But that had no effect, because even after restarting everything it still gives the above error message referring to /var/mysql/mysql.sock
2. So then I followed the directions to have MySQL create the socket in the /var/mysql/mysql.sock. But any attempt to set the permissions on that directory has no effect or produces an 'unexpected error'.
3. So then I tried creating an alias from /var/mysql/mysql.sock to /tmp/mysql.sock, but that had no effect either.
Three possible solutions -- any one of which would solve the problem -- but all three of them fail, and the error message is always the same. What gives?Hi,
I had the exactly the same problem after the 10.5 upgrade, I found following in another forum (seems to be pretty same as your solution 3, except for the mkdir command). After I applied these commands via the terminal window the MySQL worked with my PHP scripts (The PHP needed also some tweaking before working, but is not the issue here).
! first create the /var/mysql directory
sudo mkdir /var/mysql/
! Then create the link
sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
! The restart apache (web sharing off and on in the sharing panel)
Best regards,
Sebastian -
MySQL can't connect through socket error
I have been mucking around with MySQL and have broken something.
Running 10.4.3 server, I get a "Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)" error
Was working fine before I decided to mess with things - I think I altered the hostname from localhost to 192.168.x.x etc.
Now I cannot connect, and MySQL manager won't start it. I would like to make it work again rather than have to install a different version.
When MySQL manager installs the requisite files for the first time, where does it store these, and how can I do this again?
Thanks
HamishThere's an issue with authentication between PHP 5 and MySQL 4.1
This thread should contain a resolution for you.
http://discussions.apple.com/thread.jspa?messageID=665175򢙗
FYI- A search here for "MySQL PHP socket" reveals the above thread and other threads with the same issue.
Jeff
Maybe you are looking for
-
Help with Photoshop Elements 9 Organizer
I need some help with my new Photoshop Elements 9 Organizer. I have not had previous versions of Photoshop, this was a brand new installation. I had previously used Kodak software which came with my camera to organize and edit pictures. My PC is app
-
CallManager 4.1(3) - Inter-cluster Trunk (ICT) behaviour and config
Hi Guys, Trying to get some clarification on this. Currently chasing a few different avenues. If anyone knows of some good detailed docco on this (have tried the standard stuff). Or if anyone has any best practice advice, otherwise any one have any c
-
IPhoto Assistance - "Loading Photos" Message
Looking for assistance with iPhoto. When attempting to open application folders and albums will not pop up. Application sits in a holding pattern with message "loading photos" on display, but will not open. Might someone know how to manage this probl
-
The gatekeeper doesn't send an ACF to the h323 gateway
Hi, I found a h323 gateway can't make any international calls thru a gatekeeper. From the debug log, the gatekeeper doesn't send an ACF to the gateway after received a LCF from another gatekeeper. Is it a know bug or configuration issue? Attached is
-
Hello Guys, Is ' portal database' something differently configured then normal database ?. IF so how & also please help me understand why portal database is used. I would be ""troubleshooting/performance monitoring a portal database"". THANKS