A Broadband and ADSL forum. BroadbanterBanter

Welcome to BroadbanterBanter.

You are currently viewing as a guest which gives you limited access to view most discussions and other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today.

Go Back   Home » BroadbanterBanter forum » Newsgroup Discussions » uk.comp.home-networking (UK home networking)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

uk.comp.home-networking (UK home networking) (uk.comp.home-networking) Discussion of all aspects of computer networking in the home, regardless of the platforms, software, topologies and protocols used. Examples of topics include recommendations for hardware or suppliers (e.g. NICs and cabling), protocols, servers, and specific network software. Advertising is not allowed.

Tags: , ,

http://Blackbox - simple but...



 
 
Thread Tools Display Modes
  #21  
Old October 20th 07, 02:55 PM posted to uk.comp.home-networking
Dave J.
external usenet poster
 
Posts: 131
Default http://Blackbox - simple but...

In on Tue, 19 Jun 2007
12:43:36 +0200, in uk.comp.home-networking, 'Flemming L. Baerentsen'
wrote:

Hi James,

Thank you for your respond.

I have also considered adding both DNS and DHCP server in Blackbox. But then
again, what if the network consist of an existing DNS and DHCP server. Then
it again will be back to square one.


Assuming 'Blackbox' has a static IP.

Would it not be simpler to create an 'installation' bat file for them to
run on each machine? The file (called anything.bat) has to contain

echo 192.168.1.10 blackbox %windir%\system32\drivers\etc\hosts

and it will add the required entry automagically when executed. Obviously,
replace 192.168.1.10 with the actual IP of blackbox.

I can't remember if the initial hosts file under windows finishes with a
carriage return, so it's possible you'd get a glitch doing the above in
that the entry would be tacked onto the last line in the blank (comments
only) file. Try it and see. If it is a problem then the cure is to use

echo # %windir%\system32\drivers\etc\hosts | echo 192.168.1.10 blackbox
%windir%\system32\drivers\etc\hosts


as the batch file line instead. Without newlines, ie all entered on one
line. It may be better to do it that way anyhow as it's then guaranteed to
work regardless of any changes that have already been made.

To anyone observant, 'doze ignores the comment character (#) if it occurs
at the end of a hostname in the hosts file.

Oh, and if you'd rather let the users copy and paste something then the
above line prefixed with 'cmd /c ' will work equally well if entered into
the 'run' box from the start menu.

Dave J.
Ads
  #22  
Old November 23rd 07, 03:36 PM posted to uk.comp.home-networking
Flemming L. Baerentsen
external usenet poster
 
Posts: 3
Default http://Blackbox - simple but...


"Dave J." skrev i en meddelelse
...
In on Tue, 19 Jun 2007
12:43:36 +0200, in uk.comp.home-networking, 'Flemming L. Baerentsen'
wrote:

Hi James,

Thank you for your respond.

I have also considered adding both DNS and DHCP server in Blackbox. But
then
again, what if the network consist of an existing DNS and DHCP server.
Then
it again will be back to square one.


Assuming 'Blackbox' has a static IP.

Would it not be simpler to create an 'installation' bat file for them to
run on each machine? The file (called anything.bat) has to contain

echo 192.168.1.10 blackbox %windir%\system32\drivers\etc\hosts

and it will add the required entry automagically when executed. Obviously,
replace 192.168.1.10 with the actual IP of blackbox.


Hi Dave,

Problem here is that the IP is unknown for the PC user as the Blackbox does
not have static IP. We do not know which IP-scheme the customer is using at
his/her network.

Regards
Flemming


 




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Question John Carroll uk.comp.home-networking (UK home networking) 5 December 2nd 06 05:56 PM
Simple QoS Matt uk.telecom.voip (UK VOIP) 6 March 10th 06 03:17 AM
Simple Home Network (not so simple) Patrick White uk.comp.home-networking (UK home networking) 4 July 31st 05 12:48 AM
Free Broadband Comedy Channel http://Yuks.TV Groucho, Benny, Chaplin, Marilyn, more http://Yuks.TV uk.telecom.broadband (UK broadband) 0 January 15th 05 06:55 PM
HTTP Miles uk.telecom.broadband (UK broadband) 1 June 14th 04 10:06 PM


All times are GMT +1. The time now is 07:13 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Content Relevant URLs by vBSEO 2.4.0
Copyright ©2004-2008 BroadbanterBanter, part of the NewsgroupBanter project.
The comments are property of their posters.
Loan - Equity Release - Loans - Mortgage Calculator - Mortgage