LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-05-2009, 06:56 PM   #1
JohnRock
Member
 
Registered: May 2009
Posts: 36

Rep: Reputation: 15
Basic home network question


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?

Thanks a lot!
 
Old 05-05-2009, 07:03 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
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).
 
Old 05-05-2009, 07:04 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
You use the machines IP address with the appropriate port and application.


E.g. firefox http://<ip_of_centos_box>:8080
firefox ftp://<ip_of_centos_box>



Cheers,
Tink
 
Old 05-05-2009, 07:35 PM   #4
JohnRock
Member
 
Registered: May 2009
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks - didn't realize it would be that simple...I thought I might need some other components like Samba or something....

But I am still a bit confused by two things, and it is not working for me yet:

The Ip I get from ipconfig is:
Code:
root@localhost mysql]# /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:18:05:5E:A4  
          inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0
But when I go to:
http://192.168.1.102
or
http://192.168.1.102:8080

I do not get anything. Is this the right IP?

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?)

Thanks for any help you can offer!
 
Old 05-05-2009, 07:42 PM   #5
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
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.
 
Old 05-05-2009, 07:52 PM   #6
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 572

Rep: Reputation: 56
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 07:54 PM. Reason: Added caution note
 
Old 05-05-2009, 07:54 PM   #7
JohnRock
Member
 
Registered: May 2009
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pentode View Post
You may need to open a port on the Windows firewall on your XP systems.
But the 8080 port that I want to reach is on the Centos box. So how could the XP firewall have anything to do with that?
 
Old 05-05-2009, 08:07 PM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Because firewalls can stop outbound traffic as well as inbound. That doesn't mean Windows firewall necessarily is though.
 
Old 05-05-2009, 08:08 PM   #9
yzhong
Member
 
Registered: Jun 2007
Location: sydney
Distribution: redhat , ubuntu, centos
Posts: 56

Rep: Reputation: 16
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.
 
Old 05-05-2009, 08:20 PM   #10
JohnRock
Member
 
Registered: May 2009
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by yzhong View Post
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?
 
Old 05-05-2009, 08:24 PM   #11
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 572

Rep: Reputation: 56
Run "system-config-securitylevel" in GUI or "system-config-securitylevel-tui" in text. You can then add ports that you want the firewall to open.
 
Old 05-05-2009, 08:34 PM   #12
JohnRock
Member
 
Registered: May 2009
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by blacky_5251 View Post
Run "system-config-securitylevel" in GUI or "system-config-securitylevel-tui" in text. You can then add ports that you want the firewall to open.
I owe you some shrimp! Thanks. I opened up port 8080 and that worked.
I really appreciate everyone's help!

John
 
Old 05-06-2009, 11:35 AM   #13
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
You'll probably also have to open port 20 (or is it 21?) for FTP access.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very basic network question R4ndom Linux - Newbie 9 04-21-2009 03:31 PM
Basic help understanding home wireless network Prostetnic_Jeltz Linux - Wireless Networking 3 10-13-2007 07:21 PM
basic q. how to copy files over home (peer) network JacekZ Linux - Networking 6 07-17-2006 07:08 PM
Very basic network settup question. Using CRUX? walterbyrd Linux - Networking 1 07-05-2005 08:09 PM
Setting up a basic home network with Slackware 10.1 sleepisforwimps Slackware 6 05-02-2005 07:28 PM


All times are GMT -5. The time now is 12:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration