Issue 478 in redis: Unable to connect redis running on fedora 14 linux from windows client

16 vistas
Ir al primer mensaje no leído

re...@googlecode.com

no leída,
5 mar 2011, 2:49:26 a.m.5/3/11
para redi...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 478 by lamusico...@gmail.com: Unable to connect redis running on
fedora 14 linux from windows client
http://code.google.com/p/redis/issues/detail?id=478

I'm using redis 2.2.1 and my operation system is fedora 14.

I started redis on fedora and then try to connect it from windows using a
tiny programme written by myself. But I got an error saying "connection
time out", when I try to connect redis from fedora with the same programme,
this time it worked!

Just connect redis from windows will reproduce the problem.

Here is the stack trace:
java.net.ConnectException: Connection timed out: 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 com.test.redis.RedisClientMain.main(RedisClientMain.java:17)


re...@googlecode.com

no leída,
5 mar 2011, 4:08:48 a.m.5/3/11
para redi...@googlegroups.com

Comment #1 on issue 478 by didier...@gmail.com: Unable to connect redis
running on fedora 14 linux from windows client
http://code.google.com/p/redis/issues/detail?id=478

You did not give much details ...

Here are a few points you may want to check:
- which Java client do you use? Is it your own?
- How about using an existing client first? (Jedis for instance)
- Please attach your small program
- Please check that Redis is listening on a port (and not only on a Unix
socket)
- Can you connect from Windows directly by using telnet?
For instance; assuming you use the default port for Redis

telnet <your ip address> 6379
*1
$4
INFO

*1
$4
QUIT

- If telnet does not work you may want to check your connectivity, firewall
configuration, etc ...

Regards,
Didier.


re...@googlecode.com

no leída,
5 mar 2011, 6:46:51 a.m.5/3/11
para redi...@googlegroups.com

Comment #2 on issue 478 by lamusico...@gmail.com: Unable to connect redis
running on fedora 14 linux from windows client
http://code.google.com/p/redis/issues/detail?id=478

It's my own java client. Jedis didn't work so I made one but it failed as
well as telnet. Now I'm going to check whether Redis's listening only on a
Unix socket.

re...@googlecode.com

no leída,
5 mar 2011, 7:13:59 a.m.5/3/11
para redi...@googlegroups.com

Comment #3 on issue 478 by lamusico...@gmail.com: Unable to connect redis
running on fedora 14 linux from windows client
http://code.google.com/p/redis/issues/detail?id=478

Redis is listening on tcp socket. The small programme only create a socket
to connect <host port>, it worked in linux and failed in windows. BTW,
telnet failed too...

re...@googlecode.com

no leída,
5 mar 2011, 7:57:14 a.m.5/3/11
para redi...@googlegroups.com

Comment #4 on issue 478 by didier...@gmail.com: Unable to connect redis
running on fedora 14 linux from windows client
http://code.google.com/p/redis/issues/detail?id=478

Well, if telnet fails too, it means you have some kind
of connectivity problems between your two boxes
(at least for the port Redis listen to).

My advice is to start with stuff like ping, tracert, etc ...
and then check the firewall/security configuration of your
machines (both machines).


re...@googlecode.com

no leída,
6 mar 2011, 12:00:46 a.m.6/3/11
para redi...@googlegroups.com

Comment #5 on issue 478 by lamusico...@gmail.com: Unable to connect redis
running on fedora 14 linux from windows client
http://code.google.com/p/redis/issues/detail?id=478

Now I fixed the problem. I forgot to have the port redis listen to included
in the firewall configuration... What a silly mistake..

re...@googlecode.com

no leída,
6 mar 2011, 9:12:10 a.m.6/3/11
para redi...@googlegroups.com
Updates:
Status: Invalid

Comment #6 on issue 478 by pcnoordh...@gmail.com: Unable to connect redis

running on fedora 14 linux from windows client
http://code.google.com/p/redis/issues/detail?id=478

(No comment was entered for this change.)

Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos