NoMachine cannot connect to Debian server, error 138 - linux

I can't connect to the KDE GUI installed on my Debian server, using NoMachine. Connection over SSH (Both through PuTTy as X forwarding) works just fine, but somehow I can't figure out how to connect using NoMachine and the NX protocol.
I installed the NoMachine server on my Debian server (nomachine_5.1.54_1_amd64.deb), which seems to work fine. It listens on port 4000. I disabled the firewall on the server.
Then I installed NoMachine on my windows system and tried to connect to the server, using the same IP address as with the ssh connection, and the login credentials I use to login on the server.
I approach the server from another network, using a VPN connection and the HTTP proxy for the network connection.
I tried the tips provided online, but can't get it to work. I still get the error message:
Could not connect to the server.
Error is 138: Connection timed out
Help would be highly appreciated!

You should use the same IP address that is shown in the Welcome GUI like the attached image (taken from the nomachine website)
nomachine welcome gui showing where to connect

Related

Connecting to Node JS Server: Works with Desktops, Not iPhone

I have a node js server running on my laptop which is connected to my home network via Wifi. I can connect using the IP address 192.168.10.108:8080 on both the laptop running the server and another desktop on the same network (ethernet). However, I cannot connect using my iPhone which is connected to the same network via Wifi.
I changed my script according to results I found while searching for the issue but it hasn't solved my problem app.listen(8080, "0.0.0.0");
I've also tried turning off my Firewall to see if that was blocking the connection but it did not solve the problem.
What else can I try so that my iPhone will connect to the node js server?

Access database on Windows server through VPN from nodejs running on Linux

I'm kind of lost in my current project. From a linux machine (Ubuntu server), running a code in nodejs I have to connect to a windows server, through VPN, and access a mySQL server running on it.
About the VPN server I only know it's Windows and I can easily connect to it by using the VPN conector on another Windows machine, I do not have access to that machine or know its parameters.
All I have is the IP of both VPN and database server inside that VPN, and username/password for VPN and database as well. Also I know that the VPN uses ms-chap v2.
I'm trying to use openvpn like that:
sudo openvpn --remote vpnIP --dev tun --ifconfig 127.0.0.1 dbIP
This does not show any error message but never request VPN's username/password
And what should I do from nodejs to access the database once VPN is created?
As I've said, I'm very lost on that! Any tip will be welcome!
Unless something else is specified, a Windows based VPN almost always uses PPTP. You can not connect with OpenVPN. You have to use a PPTP client.
The Ubuntu package is pptp-linux.
There is a detailed explanation on how to configure it here.
In a nutshell (I assume you have no GUI on a server),
you can create a tunnel with :
pptpsetup --create my_tunnel --server <server_address> --username <username> --password '<password>' --encrypt
Configuration files will be created in /etc/ppp. You can then connect (in debug mode) with:
pon my_tunnel debug dump logfd 2 nodetach
or simply (once it work) :
pon my_tunnel
and stop it with :
poff my_tunnel
If the server is a gateway, you may need to add a route, something like :
ip route add 192.168.1.0/24 dev ppp0
You may want Network Manager with a plugin network-manager-pptp, also see this wiki
https://help.ubuntu.com/community/VPNClient#PPTP

Can't access basic Hello World application launched on Amazon EC2 windows server using NodeJS

I tried to look for solutions and most of them talk about adding HTTP, RDP, HTTPS to security group which I have already done. I have a basic hello world nodeJS application running on Amazon Windows Server 2012. I want to access this application using DNS but it's showing ERR_CONNECTION_TIMED_OUT in my local laptop browser.
Configuration:
I have RDP, HTTPS, HTTP, SSH, Custom TCP Protocol with 9000 port (nodeJS is running on port 9000) for inbound rules and for outbound default "All traffic" rule is present. I have not done any changes in the Windows Server 2012 configuration. WHen I run localhost:9000 in the windows server 2012 then server returns "Hello World" but when I try that on my local machine with DNS : 9000 then it says ERR_CONNECTION_TIMED_OUT
Thanks for everyone's support. Special thanks to Viccari. His suggestion (in the comments below the question) worked. I needed to add the port to the firewall. So basically after adding all the protocols to the security group, I had to add the new port on which the NodeJS is working, to the firewall in the server. Finally its working.

Port forward not working to set a local web server

I have just created a simple web server using node server and it's running fine. I can access it from the same PC by going to address http://127.0.0.1:1337.
Now I want to access that web server from my WAN IP. I got my my using whatismyip and got something like 110.36.xxx.xxx.
When I tried http://110.36.xxx.xxx:1337, I got:
Firefox can't establish a connection to the server at 110.36.xxx.xxx:1337.
Here is the screenshot how I created the port forwarding in my router:
What's wrong here?
Localhost is only accessible from the same pc. You have to launch your webserver either on address 0.0.0.0 (it will be available on all network interfaces) or 192.186.0.5 so that it is accessible from your wan interface

FileZilla Connection timed out, Error Connecting to Server

I am having an issue with FileZilla, when I try access my FTP account, I get this:
Status: Connecting to xxx.xxx.xxx.xxx:xx (Ip adds:port)
Error: Connection timed out
Error: Could not connect to server
Status: Waiting to retry...
Status: Connecting to (Ip adds:port)
Error: Connection timed out
Error: Could not connect to server
This was working fine till yesterday. It works on another pc, but its not working onn my pc now. I tried disabling Windows Firewall (as I am using Windows 8 OS). Also I completely reinstalled FileZilla, still that didn't do it. Is there anything more I can try?
I was connected to the Internet from another Laptop, with sharing the internet connection. So there was the problem, it had restricted to access the ports. When I connected directly to the Internet the problem was solved.
I had a similar issue. Turned out I was using an incorrect protocol to login to the ftp server. The ftp server was ssh secured. Selecting SFTP option instead of FTP worked for me.
https://vincent254.wordpress.com/2015/03/16/what-to-do-incase-you-get-this-filezilla-connection-error/
You might need to write the host in this format
ftp.example.com
This works if you are having the following error as well
ECONNREFUSED - Connection refused by server
Change Your Internet Connection then connect FileZilla
thanks

Resources