473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

setting up a server for a small office LAN

Hi all,

I know this is a total newbie question but I've already spent far too much time trying to figure it out, and answers from Google search results have been all over the place so I'm hoping some of the Bytes community members might have some insight.

I'm trying to set up a tiny local network. This network is for application testing, so it will not connect to the Internet at all. I only need the machines to be able to talk to each other, and that's it.

Have an Ubuntu box running Apache server. I set a static local IP address for it in /etc/network/interfaces and that seems to be working fine (the machine can reach its own static IP over HTTP, and it behaves as expected).

Have a Windows box running XP and will be connecting other machines to the network when I get this sorted out. In the hosts file on the Windows computer, I have associated the local IP address of the Ubuntu computer with that computer's name.

Have a cheap network switch, model # SMCFS5 by SMC Networks.

Both computers are plugged into the switch via their Ethernet ports.

From the Windows machine, when I try to ping the Ubuntu box's static local IP over the LAN, I get nothing, just a timeout.

From the Ubuntu box, when I try to ping the Windows box's IP address while monitoring the network activity from the Windows machine, I can see that the ping data packets are being received, but the Windows machine does not respond. I have enabled HTTP traffic and ping replies in the Windows firewall for the LAN, but it has not solved the problem.

I'm probably overlooking something obvious, but I'm stuck. I would sure appreciate any pointers. Thanks!
Sep 14 '11 #1

✓ answered by Banfa

Have you set up a static IP on the Windows machine as well? You will probably need to so that both computers are on the same sub-net.

For example suppose you Ubuntu machine has the following IP address and subnet mask

IP Address: 192.168.20.50
Subnet Mask: 255.255.255.0

The subnet mask indicates which bit the IP address corresponds to the subnet which you can find by anding (bitwise and) the IP Address and subnet mask, that gives 192.168.20.0

Effectively for 2 computers to be on the same subnet then for ever bit that is 1 in the subnet mask the value of the same bit in both IP addresses must be the same (either both 1 or both 0).

If the computers are not on the same subnet they will not be able to communicate on a simple network (one with just simple switches and no routers).

Also make sure all your ethernet cables are wire straight and do not crossover.

2 2656
Banfa
9,065 Expert Mod 8TB
Have you set up a static IP on the Windows machine as well? You will probably need to so that both computers are on the same sub-net.

For example suppose you Ubuntu machine has the following IP address and subnet mask

IP Address: 192.168.20.50
Subnet Mask: 255.255.255.0

The subnet mask indicates which bit the IP address corresponds to the subnet which you can find by anding (bitwise and) the IP Address and subnet mask, that gives 192.168.20.0

Effectively for 2 computers to be on the same subnet then for ever bit that is 1 in the subnet mask the value of the same bit in both IP addresses must be the same (either both 1 or both 0).

If the computers are not on the same subnet they will not be able to communicate on a simple network (one with just simple switches and no routers).

Also make sure all your ethernet cables are wire straight and do not crossover.
Sep 14 '11 #2
Thanks Banfa,

That totally did it! I really appreciate your pointer, thanks for the tip; you saved my hair, I was ready to pull it out.
Sep 14 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Hermes | last post by:
Hi All, Is there a way to specify the server timeout for IIS in an asp file rather than with IIS. As I would just want one page to have a long timeout period but limit the other pages in the...
3
by: Tim | last post by:
Hi Group, Apologies if this is a bit OT (if so, please advise where it should be posted). I was wondering if anyone had any ideas as to what applications could work in a system where the...
2
by: Stefan Hirtbach | last post by:
Hi, I have to create and edit Excel and Word files with an server-side applikation. One problem is that on this server no Office will be accessible, so that I can't use normal automatisation. The...
10
by: johndoe | last post by:
While creating a shopping cart application I noticed a strange bug which resulted in the Constructor and everything being called twice. I was using Inherited classes ClassShowProducts inherited...
2
by: Mantorok | last post by:
Hi all I have a JS function that sets the value of a textbox, however, after submitting the page and during server-side execution the textbox's Text property is blank. How can I access the...
2
by: VMI | last post by:
In the Page_Load() of my webForm, I have the following code, and on my HTML button, the onclick button calls writeVal() (the javascript function). When I click on the button, I see the messagebox...
1
by: Lawrence 007 | last post by:
Hi, I get the following error when I try to connect to my server to run a crystal report: Object reference not set to an instance of an object The code works fine without the parameter, but...
5
by: zonar00 | last post by:
I'm interested in opening up a small network lab for my research work at my house. For this i already have purchased the following:- #3 Pc's #1 linux(machine) functioning as a router having 2...
2
by: Daffydd | last post by:
Hi all, We have a very small office, about 12 workstations, connected together with a Dell Poweredge running Windows Small Business Server 2003. We have about 50 or GBs of data we need to back up ...
3
by: =?Utf-8?B?VGVycnkgSG9sbGFuZA==?= | last post by:
Not sure if this is the most appropriate group - feel free to redirect me. If I have a web application that needs to programatically create and manipulate office documents (word & excel), what...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.