From owner-freebsd-questions@FreeBSD.ORG Mon Feb 19 13:54:37 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6506C16A402 for ; Mon, 19 Feb 2007 13:54:37 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id 1549613C467 for ; Mon, 19 Feb 2007 13:54:36 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] (archangel.daleco.biz [69.27.145.126]) by ezekiel.daleco.biz (8.13.4/8.13.1) with ESMTP id l1JDsYMj065322; Mon, 19 Feb 2007 07:54:35 -0600 (CST) (envelope-from kdk@daleco.biz) Message-ID: <45D9AC14.7020708@daleco.biz> Date: Mon, 19 Feb 2007 07:54:28 -0600 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.9) Gecko/20070207 SeaMonkey/1.0.7 MIME-Version: 1.0 To: Drew Jenkins References: <567397.85239.qm@web62211.mail.re1.yahoo.com> In-Reply-To: <567397.85239.qm@web62211.mail.re1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How Do I Surf To My Server? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Feb 2007 13:54:37 -0000 Drew Jenkins wrote: > 20----- Original Message ---- > From: Chris > To: Drew Jenkins > Cc: freebsd-questions@freebsd.org > Sent: Monday, February 19, 2007 9:09:16 AM > Subject: Re: How Do I Surf To My Server? > >> If however, you browse from within your own home network, all you need >> is the IP address of the server (assuming that server has apache or some >> other httpd) and your done. > > Right, all at home. I have Pound configured (like on my workhorse), not apache. > But how do I determine the IP address of the server? I've never set that up before. > What file do I edit? > That depends on "determine". If you mean, "determine" as in, "discover", then "ifconfig" should work. To *set* the IP address, edit /etc/rc.conf (adding the correct arguments to ifconfig there) and reboot the server, or issue the correct arguments to ifconfig in real time (but you'll have to do it every time you reboot). Perhaps we'll be a tough schoolmaster here; see ifconfig(1)'s man page for more info ;-) >> Servers should NEVER be ip'ed dynamically. Servers should ALWAYS be >> static unless of course, you are running some form of DNS internally. > > All I need is something like this: > 123.456.78.90:8080/example_site > so I can look at said site. > >> Again, if your intent is to access from outside your network - then the >> above is mute and you need to educate yourself with the whole networking >> thing. > > I'm glad I can once more dodge that bullet ;) > Drew Will this help? $ ifconfig vr0 vr0: flags=8843 mtu 1500 inet6 fe80::20a:e6ff:fee5:3760%vr0 prefixlen 64 scopeid 0x2 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 ether 00:0a:e6:e5:37:60 media: Ethernet autoselect (100baseTX ) status: active And on a Windows Laptop: C:\> more c:\windows\system32\drivers\etc\hosts # Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host 127.0.0.1 localhost 192.168.0.1 webmail.daleco.biz So, I can browse "webmail.daleco.biz", located on a FreeBSD server on my LAN, from a Windows laptop; the server is running on the FreeBSD box's "vr0" interface (IP address 192.168.0.1), and the "hosts" file on the Winbox is telling it that "webmail.daleco.biz" is at that address. That's DNS, circa 1981. No charge ;-) Kevin Kinsey DaleCo, S.P. -- I never vote for anyone. I always vote against. -- W.C. Fields