LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-28-2003, 01:44 AM   #1
amdawi
Member
 
Registered: Sep 2003
Distribution: Fedora
Posts: 47

Rep: Reputation: 15
Unhappy Local Web Server


I Have a network [ 2 Pcs , Server + Clent ]
Network is working very well .

In server , I setup apache web server ,
It's runng Ok in local machine in server .
When I write in browser : http://192.168.0.1
is working .
but in client , It's Not working
when I write in Client Browser :
http://192.168.0.1
I got [ the page can not displayed ]

Note :
1. Client IP : 192.168.0.2
2. I can Ping PCs .

Any Help ?
 
Old 09-28-2003, 08:12 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Check you don't have any firewalls in place blocking port 80:
iptables -L
 
Old 09-28-2003, 11:03 AM   #3
amdawi
Member
 
Registered: Sep 2003
Distribution: Fedora
Posts: 47

Original Poster
Rep: Reputation: 15
I Don't have Firewall , I disabled it
but same problem
 
Old 09-28-2003, 12:40 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Check that it isn't just listening on the loopback - post the output of:
netstat -nlp
iptables -L
 
Old 09-28-2003, 02:16 PM   #5
amdawi
Member
 
Registered: Sep 2003
Distribution: Fedora
Posts: 47

Original Poster
Rep: Reputation: 15
[root@localhost root]# netstat -nl

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN
2163/
tcp 0 0 127.0.0.1:32769 0.0.0.0:* LISTEN
2281/xinetd
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
2323/
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
2144/
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
2531/X
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
2367/httpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
2267/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
2387/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
2337/
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
2367/httpd
udp 0 0 0.0.0.0:32768 0.0.0.0:*
2163/
udp 0 0 0.0.0.0:643 0.0.0.0:*
2163/
udp 0 0 0.0.0.0:111 0.0.0.0:*
2144/
udp 0 0 0.0.0.0:631 0.0.0.0:*
2387/cupsd
raw 832 0 0.0.0.0:1 0.0.0.0:* 7
2734/ping
raw 1568 0 0.0.0.0:1 0.0.0.0:* 7
2727/ping
raw 7392 0 0.0.0.0:1 0.0.0.0:* 7
2726/ping
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Pat
h
unix 2 [ ACC ] STREAM LISTENING 3382 2645/kdeinit: dcops /tm
p/.ICE-unix/dcop2645-1064773323
unix 2 [ ACC ] STREAM LISTENING 2952 2598/ssh-agent /tm
p/ssh-XX4Aidgi/agent.2540
unix 2 [ ACC ] STREAM LISTENING 3522 2674/kdeinit: ksmse /tm
p/.ICE-unix/2674
unix 2 [ ACC ] STREAM LISTENING 3640 2691/gconfd-2 /tm p/orbit-root/linc-a83-0-854c3deaf4b0
unix 2 [ ACC ] STREAM LISTENING 3648 2687/eggcups /tm p/orbit-root/linc-a7f-0-7eb8caf6d414d
unix 2 [ ACC ] STREAM LISTENING 3681 2689/python /tm p/orbit-root/linc-a81-0-62f2c274bf59a
unix 2 [ ACC ] STREAM LISTENING 2534 2323/ /va r/lib/mysql/mysql.sock
unix 2 [ ACC ] STREAM LISTENING 2615 2356/gpm /de v/gpmctl
unix 2 [ ACC ] STREAM LISTENING 2863 2487/ /tm p/.gdm_socket
unix 2 [ ACC ] STREAM LISTENING 2756 2455/ /tm p/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 2873 2531/X /tm p/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 3494 2662/artsd /tm p/mcop-root/localhost_localdomain-0a66-3f7726d2
unix 2 [ ACC ] STREAM LISTENING 3378 2642/kdeinit: Runni /tm p/ksocket-root/kdeinit-:0
unix 2 [ ACC ] STREAM LISTENING 3405 2648/kdeinit: klaun /tm p/ksocket-root/klauncherFEICZb.slave-socket




[root@localhost root]# iptables -L


Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
 
Old 09-28-2003, 02:25 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
There is no reason why it shoudn't work - apache is listening - try again with the secure server too:
http://192.168.0.1/
https://192.168.0.1/
 
Old 09-29-2003, 01:57 AM   #7
amdawi
Member
 
Registered: Sep 2003
Distribution: Fedora
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks for ur replay ,
The exact error when I write : http://192.168.0.1 , in WinXP Client Browser is :
The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.

--------------------------------------------------------------------------------

Please try the following:

Click the Refresh button, or try again later.

If you typed the page address in the Address bar, make sure that it is spelled correctly.

To check your connection settings, click the Tools menu, and then click Internet Options. On the Connections tab, click Settings. The settings should match those provided by your local area network (LAN) administrator or Internet service provider (ISP).
If your Network Administrator has enabled it, Microsoft Windows can examine your network and automatically discover network connection settings.
If you would like Windows to try and discover them,
click Detect Network Settings
Some sites require 128-bit connection security. Click the Help menu and then click About Internet Explorer to determine what strength security you have installed.
If you are trying to reach a secure site, make sure your Security settings can support it. Click the Tools menu, and then click Internet Options. On the Advanced tab, scroll to the Security section and check settings for SSL 2.0, SSL 3.0, TLS 1.0, PCT 1.0.
Click the Back button to try another link.



Cannot find server or DNS Error
Internet Explorer
 
Old 09-29-2003, 07:28 AM   #8
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Rep: Reputation: 15
are you using a router ???
 
Old 09-29-2003, 08:46 AM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It could be a local routing problem on your windows machine but it is funny that you can ping it. Do you use any proxy servers with your connection? From the client machine try a telnet connection:
telnet 192.168.0.1 80

You should get a blank telnet window - type:
HEAD / HTTP/1.0

Then press enter twice. You should get a head result from the server.
 
Old 09-29-2003, 10:08 AM   #10
amdawi
Member
 
Registered: Sep 2003
Distribution: Fedora
Posts: 47

Original Poster
Rep: Reputation: 15
*********
You should get a blank telnet window - type:
HEAD / HTTP/1.0
******
I got :
>>>>

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Req
uest</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that
this server could not understand.<br />
</p>
<hr />
<address>Apache/2.0.40 Server
at <a href="mailto:root@localhost">Linux</a> Port 80</address>
</body></html>


Connection to host lost.

----
What's problem ?????????
 
Old 09-30-2003, 01:22 PM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Well it shows that you can get requests to the server. My bet is that you have set the browser to use a proxy or somehting similar.

What browsers have you tried in?
 
Old 09-30-2003, 03:44 PM   #12
amdawi
Member
 
Registered: Sep 2003
Distribution: Fedora
Posts: 47

Original Poster
Rep: Reputation: 15
I'm using MS Explorer 6.0 in Client PC with no proxy ..
 
Old 09-30-2003, 03:51 PM   #13
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try downloading another browser like Mozilla and see if it works.
 
Old 09-30-2003, 04:11 PM   #14
amdawi
Member
 
Registered: Sep 2003
Distribution: Fedora
Posts: 47

Original Poster
Rep: Reputation: 15
Mozilla for windows ??
What's difference ?
From Where can download ??
 
Old 09-30-2003, 04:14 PM   #15
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
The difference maybe a configuration issue. You can get mozilla from:
http://www.mozilla.org/
 
  


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
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 10:30 PM
Fake Web Address on Local Server Rundi Linux - Networking 9 06-28-2005 05:08 PM
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 07:11 PM
Alias for local web server nrambeck Linux - Networking 6 02-09-2005 11:28 AM
local web server behind dhcp router j4b Linux - Networking 10 08-09-2004 10:21 PM

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

All times are GMT -5. The time now is 07:32 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