LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-14-2005, 02:43 PM   #1
canuckin
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Rep: Reputation: 0
server doesn't connect to other computers


first, I am very new to linux...
I set up a server using Xampp and connected to DynDNS.
I went ahead and tested to see if the server worked by typing in http
address on the server box's browser, it came up all good and fine, but
when I tryed to access the same http from a different box then I got an
"Operation timed out while trying to..." message.

I will try to provide all the information you need

I am using fedora core 3

I am working from behind a firewall and router

I have an account with dynDNS

I use a Xampp server

My IP address is reachable from the Internet

I have DHCP

my mask is 255.255.255.0

can anyone please help?
 
Old 07-14-2005, 02:54 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Is your firewall blocking port 80?
 
Old 07-14-2005, 03:14 PM   #3
canuckin
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I can turn my firewall off and it makes no difference
 
Old 07-14-2005, 03:31 PM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
does your router have a firewall too. If not, then did you edit the httpd.conf (apache config file) so that the server is not bound to the local machine.i.e it is not setup to only be accessed from your local machine.

Tux,
 
Old 07-14-2005, 09:07 PM   #5
canuckin
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Original Poster
Rep: Reputation: 0
how do you do that?
 
Old 07-15-2005, 02:06 AM   #6
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You will not be able to see the server from the lan using its public domain name due to the fact that you are not using network loop back. You should be able to see the html pages using the local lan address. e.g. if the lan address of the server is 192.168.0.2 then using the form http://192.168.0.2 should bring up the webpage. If you have the name of the server in your lan boxes /etc/resolv.conf ( e.g. 192.168.0.2 webserver) then using the form http://webserver should also do the same. The only way you will be able to see the pages on the server from your own lan using its domain name is to set your browser to use a public proxy for the internet.

Last edited by TigerOC; 07-15-2005 at 02:09 AM.
 
Old 07-15-2005, 07:40 AM   #7
canuckin
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I think some of that went over my head, but I'll try to answer it...

While browsing on my server box I can get to the site if I go to my local address (127.0.0.1) and if I go to my dynDNS address (imitree.homeftp.org/woodstock).

When using a seporate Computer I cannot go to my dynDNS address (imitree.homeftp.org/woodstock).

- I have gone into DynDNS and double checked that it is using my real IP address and not the one the router is using ie 192.168.1.102.
but I am assuming that if I can see the site when going to imitree.homeftp.org/woodstock on any computer then dnyDNS is doing it's job properly.

/etc/resolv.conf conatins:
; generated by /sbin/dclient_script
search "my DNS Search Path"
nameserver "primary DNS"
nameserver "secondary DNS"can
 
Old 07-15-2005, 09:26 AM   #8
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Ok. I'll try to explain this more simply. You have an IP address allocated to you by your ISP which is a numeric address like 123.456.678.890. When you buy a domain name the address is given a holding IP address at the registrar. So if someone enters your domain name the IP address will be resolved to the registrar holding IP address. Now because your IP address is dynamic (issued by dhcp) you have had to use dynDNS in order for them to pickup your IP address and point your domain name to this address ( a little more complex than this but still). Now when you request your domain name from your own lan the network gets confused because you are trying to resolve your IP address from the same IP address.
If you set your browser (in the config settings) to use a proxy server then requests from your system go the proxy server and then to your internet server which perceives this as a request from the proxy and not from itself.
As I said above the boxes on your own lan will be able to resolve the address within the lan by the IP address given in the resolv.conf. In order for you to check whether the server is available on the wan (internet) you need to get someone else to try to access it or for you use a proxy server, as described above. If they are not able to access the system then you have a problem at either the router level (not forwarding port 80) or the firewall is excluding requests. That, you would have to resolve yourself. Bear in mind that it can take a few hours for a new IP address to permeate through the net (that's why I said a above it's a bit more complicated) as the DNS databases have to be updated.
 
Old 07-15-2005, 11:44 AM   #9
canuckin
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Original Poster
Rep: Reputation: 0
ok, thanks I'm pretty sure I know what's going on now... but everytime I try to set up a static IP I lose my internet connection
 
Old 07-15-2005, 02:37 PM   #10
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Originally posted by canuckin
... but everytime I try to set up a static IP I lose my internet connection
Do you mean on the server? If this is the case then you must remember that the static address must be on the same subnet as the router that it is connected to or else you will lose connection. You need to describe how you have set up the network connections.
 
Old 07-16-2005, 11:27 AM   #11
canuckin
LQ Newbie
 
Registered: Jul 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I got it now, cheers everybody... after Tiger managed to get it through my thick head what the real problem was I eventually was able to sort it out. thanks
 
  


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
Other computers cant connect to me? empiiricus Linux - Networking 1 05-17-2004 09:31 AM
How to connect 2 SuSE computers? 4levels Linux - Newbie 3 05-12-2004 02:29 AM
Help me..i want to connect to other win XP computers.. pulster2605 Linux - Networking 3 08-09-2003 04:33 AM
My computers cannot connect to each other using samba ! Help! ZhiYi Linux - Networking 7 02-12-2003 07:08 AM
Trying to connect to other computers on the network hextex Linux - Networking 1 05-04-2001 08:13 PM


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