View Full Version : PC to PC(server) connection
chaom79
12th March 2006, 03:52 AM
Hi guys,
I'm a newbie. I've setup my Fedora with Web Server configuration based on the information i got from the forum. Thanks to all of you people who teach us newbies on how-to setup servers, especially web server. But I have a couple of questions that I hope you guys willingly to help;
1. How can I develop or upload my website on the servers?
2. Connected directly to the server(PC to PC), is it possible that I can access the website on the server using the client PC(assuming the client PC using Windows 2000)? If can, how?
Thanks in advanced.
jdonz
12th March 2006, 04:35 AM
Hi guys,
I'm a newbie. I've setup my Fedora with Web Server configuration based on the information i got from the forum. Thanks to all of you people who teach us newbies on how-to setup servers, especially web server. But I have a couple of questions that I hope you guys willingly to help;
1. How can I develop or upload my website on the servers?
2. Connected directly to the server(PC to PC), is it possible that I can access the website on the server using the client PC(assuming the client PC using Windows 2000)? If can, how?
Thanks in advanced.
For number one, the method of choice is most likely FTP. You would need and FTP server running on the web server and use a client, such as gftp to connect with.
For number two, you can connect from Windows to a linux box using PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/) or similar SSH client. PuTTY is free and I highly recommend it. Keep in mind PuTTY and SSH are command line only, for GUI you will need to look into a VNC server.
Zotter
12th March 2006, 04:50 AM
Hi guys,
1. How can I develop or upload my website on the servers?
gftp is a popular choice on *nix boxen. Get into the habit of using it in SSH2 mode now - not FTP. Remember, FTP passes usernames and passwords accross the network in plain text. Then if you ever have to access your server via the internet, you'll be used to doing it the 'right' way.
If you need to access from a Windows box - look for a client app called WinSCP. It does file transfers via SCP very nicely.
If I'm remembering correctly, most FC installs have the SSH server enabled by default (sshd - issue '/etc/rc.d/init.d/sshd status' to see if it's up and running.)
2. Connected directly to the server(PC to PC), is it possible that I can access the website on the server using the client PC(assuming the client PC using Windows 2000)? If can, how?
Thanks in advanced.
On the client PC (windows 2k), edit the file: c:/windows/system32/drivers/etc/hosts - add a line similar to this at the end:
192.168.0.15 webserver
Difference is the IP addy you put in there will need to be the IP of your server. The name can be whatever you want it to be.
Then, on your client PC, fire up your web browser and for the address, enter 'webserver'. It'll convert that name to the IP addy of your server (cuz of the hosts file), issue the HTTP GET request and display the served page.
OR
you could just enter the IP addy of your server into your client browser - that'll work too, just ain't as much 'fun'.
Good luck!
chaom79
12th March 2006, 04:59 AM
Thanks for the reply jdonz
So, that means i have to install FTP server, along with the Web server? Or only FTP server? And wht do you mean by us a client to connect with?And how? Sorry for the lack of knowledge
elliss
14th March 2006, 12:35 AM
You don't really need the FTP service. As Zotter said, Fedora automatically includes the SSH service, which enables you to transfer files (as well as remote terminal access, and many other things). To use this, just go to the firewall utility in Fedora and tick "SSH".
You can then download the WinSCP utility to Windows to transfer files to the Fedora box, and the PuTTY utility to remotely access the Fedora command-line via SSH. Each of these utilities will ask for the name or IP address of the Fedora server, and a username/password to login to it with.
chaom79
15th March 2006, 04:22 AM
thank you so much guys. I'd really appreciated it.
chaom79
19th March 2006, 06:09 AM
Elliss,
I've tried connected PC-to-PC as I mentioned above. So, when I'm trying to activate my eth0 on fedora, the problem occured as below;
Determining IP confirmation for eth0...ping: icmp
open socket: Permission denied
ping: icmp open socket: Permission denied
failed.
So, how can I enable the connection(Fedora to Windows 2000) on the server?
Because the problem above, I've suspected thats why when i've tried using WinSCP to connect to the server, it said 'the host unable to answered......'.
Plz help.Thanks in advanced
Zotter
20th March 2006, 05:47 AM
Looks like a firewall issue, maybe....
As root, give this command: #/etc/rc.d/init.d/iptables stop
Then try your ifup eth0 again.
Any change?
elliss
24th March 2006, 03:40 PM
The Fedora firewall is one way, so it shouldn't block any outbound connections from the system. The "you can't access the socket" type messages suggest that there is something wrong with the eth0 interface. The ping utility might be broken, but that's pretty unlikely...
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.