Cannot connect to a server on Cent OS Machine - linux

I have installed CentOS as a virtual machine (using Virtual Box), on my Windows OS. I am running a lighttpd server on my CentOS machine. I am trying to access the server, from my browser, which is running on Windows, using the IP address and port number. But, I am getting the following error: Firefox can't establish a connection to the server at 10.209.145.152:8080.
Also, when I am running the server on Ubuntu(as a virtual machine using VMware Player), I am able to connect from the Window's browser successfully. Can anyone please suggest me, what I might have been missing on CentOS Machine. Thanks.

I would suggest that it is something that has to do with the VM setup. Compare the configuration of your Ubuntu VM and the CentOSVM. In order to connect from Windows to the VM, I think that you need to setup a bridge network connection rather than NAT. But I am not sure, so I would suggest you try all the different options.
Hope that helps!

Related

NodeJS hosting on linux VM, and http requests from Windows to Linux

If I'm hosting a local NodeJS server on an Ubuntu Linux Machine, is it possible to make http requests from a browser on Windows. For instance if the server is hosted on localhost:7700 on the Linux VM, how can I make http requests from Windows on?
The server is hosted with NodeJS on a Linux VM.
You have to set port forwarding. If you are using Virtual Box look here link. Instead of localhost:7700 try using 0.0.0.0:7700. Also remember to open 7700 port on your machine. The last thing is to set your network as bridged adapter to allow connection between your host OS and VM.

Backup from linux to Windows Server

I have a Debian server (VPS) and a Windows server (at home). I would like to backup periodically some paths of my Debian to My Windows server. My WS act as NAS and I use it for my all backup.
Firstly I started to configure a cron task with rsync on my Debian but as there is no native ssh server on Windows server it may not be the best solution. Then I was wondering if it would not be better to use my windows server to pull data from my debian to windows.
Here is the only link I found that make things on this way: http://troy.jdmz.net/rsync/
(server pull from client)
Also my windows server is at my home and it bring one constraint which is that I can change my home location, so my ip change too and all the configuration of router. I would like to just plug the windows server and let it continue to work normally.
What do you guys think about all of that ? Is it an elegant solution to make this on this way ?
Do I have to install cygwin with rsync ? Is it possible to set a periodic task on my windows server ?
Thanks in advance.
As you pointed out in your question - being that your Windows machine is behind a NAT router, it may be simpler for your windows machine to 'pull' files from your Debian VM, as opposed to your Debian VM 'pushing' files to your Windows machine. Pushing files from your Debian VM to your Windows machine would require you to setup some type of server on your Windows machine that would listen for incoming connections from your Debian VM on some designated port, it would required that you setup a port-forwarding rule on your NAT router, and it would require you to setup a dynamic DNS hostname that would change whenever your router's public IP changes. And, since you would be opening a port up to the public, it would also require you to take into account security considerations to make sure that nothing gets compromised.
So, pulling files to your Windows machine from your Debian VM would be simpler. One way to do this would be to install Cygwin and use rsync, as you mentioned. Another solution may be to install putty on the windows machine, then use pscp on the windows machine to copy files from the remote debian host to the windows machine. The pscp command can be scripted using a DOS batch script, Powershell, or any number of other windows scripting tools. See http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter5.html for more info.

How to Visit the Node.js Server app on Ubuntu From other Computers

I have installed the Node.js on Ubuntu 12.4 and the server is running localy but how I can see the rendered page by server from other computers? Do I need to have an IP address? for this?
The command ifconfig will tell you what your IP address is. Depending on the server you're running you may need to add the port number as well. From another computer on the local network you would go to:
http://your_ip_address_here:port_number

How Can I connect to Amazon Linux instance using Remote Desktop from Windows 7?

I created an EC2 Amazon Linux instance (yes, an amazon version of linux..)
it is launched but I can't connect using Remote Desktop...
am I trying to do something crazy here?
I got a message that Remote Computer is not available on the network
If you mean Windows RDP (Remote Desktop) that is your problem. Most likely you will need to use an SSH client to connect. I suggest Putty.
You should've received an SSH key when you setup your server. You will need to convert that key using PuttyGEN (same page as the Putty download) to convert it then use it with Putty to access the server.
Trying to walk you through the process of installing a GUI and VNC on the server is a bit much for here but give this video a shot. It seems pretty thorough and from skipping through it I saw no obvious errors in his process.
Try installing the vnc4server package. Then you can use a client such as TightVNC to connect from a Windows machine. You'll also need to open up port number 5900 in your firewall, which is the default for VNC.
You'll also have to have a desktop environment installed on your EC2 instance - by default you may only have the server packages which will not give you a GUI.
For your information, some folks posted remote desktop conf for EC2 instances.
http://activeintelligence.org/blog/archive/remote-graphical-linux-desktop-on-ec2/

Connecting to IIS from virtual machine inside vmwate

I have a virtual machine running windows xp inside a vmware instance. How do i connect to the iis on my vmware instance from my xp virtual machine?
Hope you get the idea, otherwise ill elaborate.
Thanks
you need to know the ip of the machine that hosts the iis. then a simple http:\xxx.xxxx.xxx.xxx\ or http:\machinename

Resources