Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My first time installing centos server and adding it to xp home network. I am new to setting up my own network in general so please bear with me and help me with this basic question
I have a home windows wired ethernet xp network (simple linxs router) with 2 xp boxes and one centos5 box all connected to the same router.
I just set up the centos box running tomcat on port 8080
I need to do two very basic things at this point, but am not sure what I need to do:
What do I need to do so I can:
1. Connect in firefox on one of my xp boxes and call the tomcat server running on my centos box?
2. Be able to ftp to centos box from either of my xp boxes?
I don't really know what tomcat is, but since it's on port 8080 I'm assuming it's some sort of web service like apache. If it has a home page, just enter the internal IP address of the CentOS box into Firefox. For example http://192.168.0.5.
As to ftp into the CentOS box, you have to run an FTP server on the box, like ProFTP, ftpd, wu-ftpd, vsftpd, etc. Then on the client machine (XP) you need an FTP client like FireFTP (firefox add-on) or Filezilla client. Then you connect by similarly putting in the local address of the CentOS box (192.168.0.5 in the example above).
Also, Tomcat is an application server running on port 8080, but is that port visible to other computers on my network? (I thought maybe only port 80 would be visible?)
You may need to open a port on the Windows firewall on your XP systems. You can try turning off your firewalls on the XP boxes and see if that allows you to see the 8080 port. If this works, you can work on getting the firewall opened up as needed.
More likely to be the firewall on the CentOS box. As the root user, run "service iptables stop" and then see if you can browse to the server from your XP box.
Note: You shouldn't run like this permanently. If you need ports 8080 and 102 open then you should add firewall rules that allows connections to these ports, while still blocking everything else. Run "service iptables start" to restart the firewall after your test.
Last edited by blacky_5251; 05-05-2009 at 06:54 PM.
Reason: Added caution note
1, In your centos system, enter "elinks http://192.168.1.102:8080"
If it doesn't work, means your tomcat web service not start.
2, In your centos system, enter "service iptables stop"
In your firefox on xp system, if you can visit http://192.168.1.102:8080, means
centos firewall block 8080 before.
3, If still doesn't work, need to check xp system to see if they block 8080. Normally they don't if you are not do any specific settings before.
In your firefox on xp system, if you can visit http://192.168.1.102:8080, means
centos firewall block 8080 before.
THank you!. Yes, stopping iptables allowed me to access the link from my xp machine. So that means that Centos blocks outside access of port 8080.
What is the proper way to set this up? I know that for a production server you need to either use a firewall or Apache to handle requests on port 80 and then pass them to tomcat on 8080. But is there a way on a home network to allow local network access to port 8080?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.