Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 03-27-2003, 03:19 PM   #1 (permalink)
paul
Registered User
 
Join Date: Feb 2003
Location: NS, Canada
Posts: 15
paul is on a distinguished road
Accessing My Site

Basically, I have a home network. One perticular computer has a webserver set up (sometimes tux, sometimes apache). I can access the page with localhost just fine, but when I try from another computer on the network, it doesn't work.

I know it doesnt really have to do with HTML but i didnt know where else to put it.
paul is offline   Reply With Quote
Old 03-27-2003, 03:23 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
what o/s are you running? i'm gonna assume linux and move this post there =)

how are you trying to access the web server from the other computers? have you tried just the IP? or are you using the hostname?
sde is offline   Reply With Quote
Old 03-28-2003, 08:35 AM   #3 (permalink)
devin
Registered User
 
Join Date: Mar 2003
Location: California
Posts: 9
devin is on a distinguished road
Send a message via ICQ to devin
Modern Linux distrobutions close the ports to all using TCP wrappers. Check out /etc/hosts.deny and /etc/hosts.allow and make sure they are setup to allow all.

And make sure your ISP isn't firewalling off incoming port 80. Broadband providers don't want people running servers so they close 80. You could move it to another port though (i.e. 8080)
devin is offline   Reply With Quote
Old 03-29-2003, 11:16 AM   #4 (permalink)
paul
Registered User
 
Join Date: Feb 2003
Location: NS, Canada
Posts: 15
paul is on a distinguished road
yes, im using linux. im pretty sure that my computer allows port 80. i know my isp doesnt want you to start a server, but I have before and its worked.

im using the IP to access it. im just using the local ip because I have a router, so i type http://192.168.1.100. I think that this might be the problem.
paul is offline   Reply With Quote
Old 03-29-2003, 12:34 PM   #5 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,711
redhead is on a distinguished road
If your machine only has an internal IP, then you need to portforward any request to the router, comming form the outside to port 80, onto your internal IP, else your machine havn't got a chance to even know anyone is trying to contact it from the outside.

::EDIT::
Sorry didn't close read your first post, if the problem is, that you can't access it from another machine on the internal net, then you need to make sure the http-server is configured to accept connection from any net interface on the machine.

In apache this is depending on the info in the "BindAddress" setting, if this is set to localhost, then only connections requesting localhost will be accepted. For any interface, either comment this out, or set it to *

And make sure the "Port" setting is specified to 80.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need a code to give freebies on my site zipmagazine HTML, XML, Javascript, AJAX 1 09-22-2004 02:48 AM
Re:Inserting and displaying Unique Statistics from users viewing my site, problem bearslife PHP 3 08-07-2004 07:58 AM
Newbie Site ? DesertWolf Java 2 12-05-2002 12:38 PM


All times are GMT -8. The time now is 10:11 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting