LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-15-2004, 05:31 PM   #1
cj_thomas
LQ Newbie
 
Registered: May 2003
Posts: 7

Rep: Reputation: 0
Cannot access Apache webserver from internal network, but I can from outside...


Hi there,

Im very new to Linux so please bear with me...

I installed XAMPP for Linux and have apache running, everything was working great up until a little while ago. I can no longer access the webserver via its internal IP (something i was able to do just a few minutes ago). I can still access it via my external ip address.

Anyone know whats up?

Thanks in advance..
CJ
 
Old 10-16-2004, 08:25 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Do you have 2 ip addresses on the one NIC or 2 NICs with different IPs?

Can you post the output from:
ifcontig
route -n

What is the internal IP of your client?
 
Old 10-16-2004, 04:06 PM   #3
cj_thomas
LQ Newbie
 
Registered: May 2003
Posts: 7

Original Poster
Rep: Reputation: 0
neither, this is just in my home envrionment, so i just have it plugged into a switch and it obtains an internal address from our home router. I have setup a port redirection so that it will always forward traffic from port 800 (my isp blocks 80 so i had to change it) to my linux machines internal ip address. Yet for some reason when i point to its address (192.168.0.100) it does not reply, but when i point to my IP in internet explorer it does.

Here is the output of those commands:

Ifconfig:

LinuxBox:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:C6:F0:89:10
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::280:c6ff:fef0:8910/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1974718 errors:0 dropped:0 overruns:0 frame:0
TX packets:1938005 errors:3 dropped:0 overruns:0 carrier:3
collisions:120 txqueuelen:1000
RX bytes:971726653 (926.7 Mb) TX bytes:140527741 (134.0 Mb)
Interrupt:11 Base address:0xb800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 b) TX bytes:100 (100.0 b)

route -n:

LinuxBox:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0



Last edited by cj_thomas; 10-16-2004 at 04:33 PM.
 
Old 10-16-2004, 04:36 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
So internally are you pointing to port 80 or 800?
 
Old 10-16-2004, 06:00 PM   #5
cj_thomas
LQ Newbie
 
Registered: May 2003
Posts: 7

Original Poster
Rep: Reputation: 0
800
 
Old 10-17-2004, 07:27 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
So is apache listening on port 800 as well as 80?
netstat -nlp
 
Old 10-17-2004, 03:01 PM   #7
cj_thomas
LQ Newbie
 
Registered: May 2003
Posts: 7

Original Poster
Rep: Reputation: 0
it should just be 800

here is the output from netstat -nlp, for some reason httpd is listed twice

tcp 0 0 :::800 :::* LISTEN 1042/httpd

tcp 0 0 :::443 :::* LISTEN 1042/httpd
 
Old 10-18-2004, 12:36 AM   #8
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
You are running apache on the 800 port that you configured and the 443 is for SSL.

To be able to see the apache from your explorer without having to add the :800 after it, just edit the httpd.conf and add
Code:
Listen xxx.xxx.xxx.xxx:80
Being xxx.xxx.xxx.xxx the internal ip.
 
Old 10-18-2004, 01:18 AM   #9
cj_thomas
LQ Newbie
 
Registered: May 2003
Posts: 7

Original Poster
Rep: Reputation: 0
i cannot even access it with :800 at the end of the internal IP
 
  


Reply



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
howto access webserver from internal network? Falafel Linux - Networking 6 11-01-2005 02:18 PM
apache webserver - can see from internal but not external filpee Linux - Networking 5 03-20-2005 12:31 AM
Seeing webserver from internal network NetAX Linux - Networking 2 07-09-2004 10:03 AM
Can't access webserver IN network (slackware/apache) hcubed Linux - Networking 5 04-14-2004 04:20 PM
IPtables - cannot access internal webserver tantric Linux - Security 3 03-17-2004 02:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:15 AM.

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
Open Source Consulting | Domain Registration