?
Solved

Cant see server in Lan

Posted on 2003-11-07
9
Medium Priority
?
686 Views
Last Modified: 2010-04-11
Hello experts,
I've got a home network set up - 3 windows mechines and 1 linux web server.
the linux server has several domains hosted on it.
I can only access this linux box from a WAN, since if i enter my external IP within the LAN, i reach my router's web interface.
If i'm on the WAN and I enter my IP, i reach my linux server.
If i'm within the LAN and i enter the internal IP of the server, i reach its main page (obviously).

Here comes the question:
how do i reach the different domains from within the LAN, if i can only access the server using name based domains from a WAN?

say my domains are : example.com  domain.com  expert.com
and my internal ip of the server is 10.0.0.9

how do i access .... example.com within the LAN?

from a WAN it works great... but accessing it from the LAN is the problem here...

Thanks !
0
Comment
Question by:11ods
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 79

Expert Comment

by:lrmoore
ID: 9702184
Try creating a local hosts file on a workstation with the IP address of the Linux server:

example:
10.0.0.9 <tab> www.example.com
10.0.0.9 <tab> www.expert.com
10.0.0.9 <tab> www.test.com

0
 
LVL 5

Accepted Solution

by:
vtobusman earned 2000 total points
ID: 9702230
 go into the web config of your routers web interface....  their should be an option to turn on and off remote admin... turn it off..

  or you can setup an internal DNS server and set your client computers to use that dns server ...  on the internal dns server set the domains to go the internal address
ie domain 1 = 10.0.0.9

 if you decide on an internal dns server an easy ont to use i found to be one called Simple DNS available for download at http://jhsoft.com

 Good Luck
0
 

Expert Comment

by:cubanjoe
ID: 9702568
You need to specify a new DNS name on your DNS server .  Eg: http://webbox will take you to you internal IP.  I was messing with this yesterday with one of my servers, and it solved our problem.

If your just on a switch, and have no central server, then you need to download a DNS server like vtobusman suggested.  
0
WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

 
LVL 2

Expert Comment

by:Brazuca_Califa
ID: 9703484
Your Apache more likely is configured with virtual domains right? Where expert.com points to one web site etc..
So your computer needs to be reaching the server using this names.
Try your local host file on Win2k located at
c:\winnt\system32\drivers\etc
hosts

0
 
LVL 5

Expert Comment

by:koquito
ID: 9704793
Are those domains only intended for web use?
You can differentiate the domains by IPs.
USe ifconfig in your LInux box to add more than one IP to the NIC, then using Apache (or any web server) you can assign the right IP to the appropiate site(domain).
0
 
LVL 1

Expert Comment

by:iaind
ID: 9706130
If your domains are registered on an external DNS server then when you type the domains names in they get resolved to the external ip addresses.  Most routers don't like this and you can't have trafic that goes out, to come back in.

You have two options.

Add the servers to the hosts file on all your internal pc's/servers.
Or run your own internal DNS server and mirror the external information but with the internal IP addresses.  Your linux server will already have BIND installed on it mostlikly.

Have a look at http://www.linux.org/docs/ldp/howto/DNS-HOWTO.html and http://www.siliconvalleyccie.com/linux-hn/dns-static.htm
0
 
LVL 21

Expert Comment

by:wyliecoyoteuk
ID: 9708226
If your router supports it, you could possibly use port forwarding.
Or you could set up a reverse proxy on the linux server.
0
 

Author Comment

by:11ods
ID: 9711346
sorry for the delay

thank you for your input and ideas everyone,

i will close this question by the end of the week once i get a chance to try this!
sorry again

11ods
0
 
LVL 1

Expert Comment

by:asurada2003
ID: 9712650
hi,

If u are using linux,
u have to install samba so that u other windows platform can connect to it.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses
Course of the Month11 days, 13 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question