According to the liquidsoap documentation, I should be able to set up a telnet server like this:
set("server.telnet",true)
set("server.telnet.port", 1201)
Unfortunately, while I'm able to connect to this from localhost, I can't connect to it from a remote server.
Try this
set("server.telnet",true)
set("server.telnet.port",1201)
set("server.telnet.bind_addr","0.0.0.0")
0.0.0.0 for all network interfaces, 127.0.0.1 for localhost-only
Related
I build REST API for connecting to a SQL Server where installed vmware fusion. When ı tried to connect remote SQL Server port 1433 it will throw an error:
"Failed to connect to 192.168.1.20:1433 - connect ECONNREFUSED 192.168.1.20:1433"
192.168.1.20 -> This is my bridge network ip adress with vmware fusion.
1433 -> This is the SQL Server port number.
I am also look is the port open with telnet. I install the telnet and execute the following code in terminal :
telnet 192.168.1.20 1433
and this is the same error.
Trying 192.168.1.20...
telnet: connect to address 192.168.1.20 : Connection refused
telnet: Unable to connect to remote host.
So I cannot reach the remote SQL Server installed in vmware fusion.
This is my db.cs file:
exports.dbConfig = {
user:"username",
password:"111111",
server:"192.168.1.20",
database:"dbname",
port: 1433
};
How can I fix this error?
I have two servers, I want to connect server1 to server2. I've configured the firewall between them, and they could be connected before I changed server2's default port.
Now I can connect to server2 by ssh on my mac, but when I try to connect to server2 on server1, I get this error:
ssh: connect to host [ip_address] port 49645: Connection refused
What's else can I do?
What is the current firewall configuration? Without more context, it seems you may need to configure the firewall to allow port 49645 incoming on server2. If you're getting a "connection refused," make sure that on server2 ssh localhost:49645 works and that ssh is running with your settings.
After I have created my apache server, and installed LAMP, I have portforwarded port 80, and am able to reach the server on any browser using my external IP. When I go to connect to the server through ssh using my terminal on my MacBook, I can only connect to it using the servers inet (IPv4) IP address, and not the external IP address using port 80, for example, I can connect to it using: ssh root#192.168.1.204, but I cannot connect to it using: ssh -p 80 root#'external ip address'
the error I get is: ssh_exchange_identification: Connection closed by remote host
PLEASE IF ANYONE CAN HELP! I have been struggling with this for days.
Thanks
SSH is port 22, you can't use it to connect to port 80. If you added the port 80 portion to your first command as well, you should see the same error.
I want to connect to a remote server (host1) that accessible only from it's private network.
Another server (host2) is accessible from the Internet.
I opened a tunnel to host2 using PuTTY and tested it's working with Firefox (also checked that I got different IP address).
How can I connect to host1 using the tunnel I created?
I tried to configure proxy (to the tunnel I created - localhost) in PuTTY but it's not working.
The error I got: "Server unexpectedly closed network connection"
Pay attention that the host is the computer name in the network.
You connect to the local tunnel end directly, no "proxy" setting is needed.
This typically means that you use "localhost" as a Host Name. And a port according to your tunnel configuration.
See my guide for tunneling SFTP/SCP session. It's for WinSCP, but just use PuTTY instead of WinSCP in section Connecting through the tunnel.
I want to use jvisualvm's remote functionality to see live stats of a remote JVM.
I've started the jvisualvm from my windows machine but I don't know how to configure the remote connection.
On the remote machine (OS: Redhat Linux), tomcat is started with below jmx parameters:
-Dcom.sun.management.jmxremote"
-Dcom.sun.management.jmxremote.port=3030"
-Dcom.sun.management.jmxremote.authenticate=false"
-Dcom.sun.management.jmxremote.ssl=false"
netstat -lnp| grep 3030
tcp 0 0 0.0.0.0:3030 0.0.0.0:* LISTEN 30728/java
ssh connection is open to remote server and I tunneled the remote port 3030 on a certain local port but when I create new jmx connection (localhost:localport) in jvisualvm I get the below error
Cannot connect to localhost:10000 using service:jmx:rmi:///jndi/rmi://localhost:10000/jmxrmi
Can someone help me to create the connection?
First of all if you are making a remote connection, localhost connection doesn't make sense.
You need to start jstatd on the remote machine. For this purpose create a jstatd.all.policy file in the home directory of your remote machine and add the following lines:
grant codebase "file:${java.home}/../lib/tools.jar" {
permission java.security.AllPermission;
};
Then on the command line of your remote machine you will type ' jstatd -J-Djava.security.policy=jstatd.all.policy -J-Djava.rmi.server.hostname={Your Ip address} '
Once jstatd service start on the remote machine you basically add the remote connection Ip address connection on the jvisualVM UI using add remote host.
The Oracle documents for JvisualVM can be referred at https://docs.oracle.com/javase/8/docs/technotes/guides/visualvm/applications_remote.html but it is really confusing to understand jstatd steps.