Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Cant see server in Lan

Posted on 2003-11-07
9
Medium Priority
?
687 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
Q2 2017 - Latest Malware & Internet Attacks

WatchGuard’s Threat Lab is a group of dedicated threat researchers committed to helping you stay ahead of the bad guys by providing in-depth analysis of the top security threats to your network.  Check out our latest Quarterly Internet Security Report!

 
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

Looking for the Wi-Fi vendor that's right for you?

We know how difficult it can be to evaluate Wi-Fi vendors, so we created this helpful Wi-Fi Buyer's Guide to help you find the Wi-Fi vendor that's right for your business! Download the guide and get started on our checklist today!

Question has a verified solution.

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

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

609 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