how to use remote redis server without installing it to development PC - redis

I am using redis server.
I have installed it on a PC having IP address 192.168.10.38. When I connect using the same PC redis servre is working fine.
Now my actual problem is I want to connect with same server using another PC.
Note that redis server is not installed to this PC.
When I use the same application on this another PC, I am getting exception below.
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused
at redis.clients.jedis.Connection.connect(Connection.java:142) ~[jedis-2.4.2.jar:?]
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:75) ~[jedis-2.4.2.jar:?]
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1724) ~[jedis-2.4.2.jar:?]
at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:65) ~[jedis-2.4.2.jar:?]
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819) ~[commons-pool2-2.0.jar:2.0]
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:429) ~[commons-pool2-2.0.jar:2.0]
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:360) ~[commons-pool2-2.0.jar:2.0]
at redis.clients.util.Pool.getResource(Pool.java:40) ~[jedis-2.4.2.jar:?]
Kindly help me with this and let me know can I use remote redis server without installing it to my development PC ?

Redis server is by default binded to 127.0.0.1
I changed it to 0.0.0.0 and finally it uses 0.0.0.0:6379 to listen redis server services.
And it worked for me.

Related

Connection timeout while trying to SSH

Hope I'm doing this right as this is my first StackOverflow question. I'm trying to SSH into a server, but running the ssh command results in a connection timeout (using the MobaXTerm client on Win10). I'm trying to connect on port 22, and have gone through Windows Firewall to make rules to open the port, but it's still not working. Any ideas as to why this is happening? I can provide relevant information as needed.
Thanks in advance!
That error message means the server to which you are connecting does not reply to ssh connection on port 22. I think three possible reasons for that:
The server has not installed ssh
You are running ssh with different port
The machine has a firewall that doesnot allow you to connect

Unable to connect to openstack instance using NoVNC console

While trying to access to instances via NoVNC console from other nodes such as storage and compute connection at 127.0.0.1:6080 cannot be established but everything works well on the controller node.
Still looking for the missing configuration
this IP '127.0.0.1' is a localhost IP, which means that this IP can resolve from the server on that server and another server, 127.0.0.1 point to a different destination.
you should run noVNC on some IP from the network and you can configure this at /etc/kolla/nova-novncproxy/nova.conf

Connect host ldap server to local VM

I have a server installed on VM and a LDAP(opendj) server created using Apache Directory Studio on my host computer. Now, I would like to connect that LDAP server to local VM so that the VM server can pull user's information from LDAP server. is it possible to do that? I could not understand how to establish a communication between these two server.
Thanks.
Remote Port Forwarding actually does work here.
my ldap server port was 10389.
I have created a tunnel from host to vm:
ssh -R 10389:localhost:10389 root#172.16.130.132(vm-ip)
after then, vm can reach to the host through this port (10389).
Sorry, I don't have that much knowledge on ssh. But this one worked for me.

Database Connectivity Issue

I'm installing an application and getting following error:
Can't connect to SQL Server DB.
Error: The TCP/IP connection to the host , port 1433 has failed.
Error: : Connection timed out. Verify the connection properties.
Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connection at the port.
Make sure that TCP connections to the port are not blocked by a firewall.
Can someone please advise me?
Issue resolved with the help of SQL Server configuration Manager

Notepad++ NppFTP [SFTP] Connection failed : Error reading socket

Does anyone know why I am unable to connect to my server using the Notepad++ NppFTP plugin with SFTP?
I have a CentOS 6.4 server with SSH on port 22.
When I try and connect using NppFTP I get the following output:
[NppFTP] Everything initialized
Connecting
[SFTP] Connection failed : Error reading socket
Unable to connect
Disconnected
This used to work when I had my SSH port set to 3264 but when I changed the SSH port back to 22 NppFTP stopped working. All the settings for the profile are correct including the right IP, username, password and port (22).
I can connect with SFTP using FileZilla and WinSCP successfully with these same SFTP details and I can connect with SSH using PuTTY.
I can connect with SFTP to other servers using NppFTP so I believe there is an issue in my server config I'm just not sure where or what.
I looked at the access logs but found no attempt at a connection from NppFTP, I turned the firewall off and still nothing.
In the end I got in touch with my server company and it turns out it was a problem on their end. This is what they had to say:
"This was caused by an IPS rule inspecting the network packets coming into the infrastructure, which helps identify brute force attacks."
Very strange, but after they made the change NppFTP can now connect successfully.