Author Topic: Just found we can host our own site on our Macs!  (Read 4985 times)

Offline jcarter

  • TS Addict
  • *****
  • Posts: 5808
    • View Profile
    • http://www.jcarter.net/ourdogs/muffinpage.html
Just found we can host our own site on our Macs!
« on: October 23, 2009, 06:23:01 AM »
Looking in a MacLife magazine, I saw a way to host your own site, rather complex, but it said there was an easy way,,,,,,,so I looked at the instructions, wow, there it is really simple!
But my questions are, does this allow anybody to get into your computer?  Or can anybody outside our own household network see it?
Here it is,
http://192.168.1.3/~Jane/
If there is any danger with leaving it on, I will disable Web Sharing right now.
Thanks,
Jane

Offline Xairbusdriver

  • Administrator
  • TS Addict
  • *****
  • Posts: 26388
  • 27" iMac (mid-17), Big Sur, Mac mini, Catalina
    • View Profile
    • Mid-South Weather
Just found we can host our own site on our Macs!
« Reply #1 on: October 23, 2009, 07:34:09 AM »
The problem is not so much the ability of anyone getting into your computer, you can make unix even more difficult to hack. But, without having a static IP address, people will not be able to easily visit your site. Most ISPs renew your 'lease' on a schedule. Of course, you can use a service that puts a little app on you machine that monitors your assigned address and changes where they send people who access the IP they will give you, it's basically a 're-direct' system.

However, you might get a nasty letter from your ISP if/when your traffic becomes suspiciously high. Most IPSs specifically restrict using your 'residential' connection for use as an Internet server. They'll usually be quite happy to 'give' you a static address and higher bandwidth allowances for a 'small' extra fee, of course. wink.gif

I suspect most people enable Apache so they can access their own machines on the LAN or to use it during web  development. I've never bothered to use it as I have enough space on the hosting service to test pages/php/etc. without affecting any live sites. YMMV. I think Apache has been installed since Jaguar, maybe even 10.1. dntknw.gif But it's certainly easier to enable now.
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system
CAUTION! Childhood vaccinations cause adults! :yes:

Offline jcarter

  • TS Addict
  • *****
  • Posts: 5808
    • View Profile
    • http://www.jcarter.net/ourdogs/muffinpage.html
Just found we can host our own site on our Macs!
« Reply #2 on: October 23, 2009, 07:47:08 AM »
Could you see it?
 Its not there if the machine goes to sleep.  I just tried it from this mac and had to wake up the new one to see it.
I wont have any traffic because nobody knows about it except TS.  I think that number is my router address?
This is fun to learn new stuff.
Jane

Offline dolphin

  • TS Addict
  • *****
  • Posts: 2769
    • View Profile
    • http://dolphin13.com/designsbyroy/
Just found we can host our own site on our Macs!
« Reply #3 on: October 23, 2009, 08:59:40 AM »
QUOTE(jcarter @ Oct 23 2009, 08:47 AM) <{POST_SNAPBACK}>
Could you see it?
 Its not there if the machine goes to sleep.  I just tried it from this mac and had to wake up the new one to see it.
I wont have any traffic because nobody knows about it except TS.  I think that number is my router address?
This is fun to learn new stuff.
Jane



I couldn't see it Jane.  It timed out saying it was taking too long.
"If it aint broke; don't fixit"
Roy

Offline Xairbusdriver

  • Administrator
  • TS Addict
  • *****
  • Posts: 26388
  • 27" iMac (mid-17), Big Sur, Mac mini, Catalina
    • View Profile
    • Mid-South Weather
Just found we can host our own site on our Macs!
« Reply #4 on: October 23, 2009, 09:02:47 AM »
QUOTE
Could you see it?
Of course. Anyone who finds the IP number could see whatever you allow them to see. That's the point, "Sharing" what's on you machine. How, what and with whom is up to you, of course. No one has to know your IP address (your router MAC address is important only to your ISP, no one else ever sees it or cares, really). There are ways to 'find' your IP number, even if it is only a temporary one.

As I understand it, the ISP uses the router MAC address to know who is at the end of the IP address, obviously for accounting purposes. That's why they have that number recorded when they 'give' you a router' or ask you for it when you buy one. They basically then attach that number similarly as a "port" number to the end of your assigned IP address. It's simply how they know where to send info you've requested to the right place. It's your ID as far as they are concerned, you are just a non-human, MAC address number to them! wink.gif

"Stuff" is fun to learn, but it is important to learn enough to be aware of any dangers, problems, expenses and capabilities before attempting to put that information to practical use. It is one thing to know all the fundamentals of flight, a completely different one to build and aircraft and actually fly it! "Curiosity killed the chemist!" whistling.gif "A little knowledge can be a dangerous experience!" steprake.gif
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system
CAUTION! Childhood vaccinations cause adults! :yes:

Offline Paddy

  • Administrator
  • TS Addict
  • *****
  • Posts: 13797
    • View Profile
    • https://www.paddyduncan.com
Just found we can host our own site on our Macs!
« Reply #5 on: October 23, 2009, 10:51:11 AM »
Jane, 192.168.x.x is a PRIVATE IP address - nobody in the outside world will be able to see it.

http://en.wikipedia.org/wiki/Private_network

And don't try to run a web site at home (it is possible - but you'd need a bit more configuration than just clicking on internet sharing) - your ISP WILL cancel your service if they discover you're doing that. It's specifically prohibited in the terms of service. There are way too many cheap ISPs out there who offer lots of great services at a miniscule price to risk your broadband connection at home.

I've just signed one of my clients up with http://www.dinsol.com - $37/year for oodles of room & bandwidth, CPanel, etc. Already I've noticed their servers are FAST - faster than than the ones at GoDaddy where the site was hosted before. Sandbox recommended them, so I'm trying 'em out. They also have a $19/yr plan that would be enough for many.

Another host that gets raves is http://www.arvixe.com/ (I mean real raves - not those paid-for "reviews")
"If computers get too powerful, we can organize them into committees. That'll do them in." ~Author unknown •iMac 5K, 27" 3.6Ghz i9 (2019) • 16" M1 MBP(2021) • 9.7" iPad Pro • iPhone 13

Offline jcarter

  • TS Addict
  • *****
  • Posts: 5808
    • View Profile
    • http://www.jcarter.net/ourdogs/muffinpage.html
Just found we can host our own site on our Macs!
« Reply #6 on: October 23, 2009, 12:25:45 PM »
Thank you all for the great explanations.    Without TS, I would never try some of this stuff. Security I know very little about.

I have Comcast for our ISP, they are expensive but very fast, no complaints so far.
The TV part leaves a bit to be desired, but we aren't avid TV watchers, so it doesn't bother us much.

For my webhost I use, MacHighway, actually I think I found about them here. The main reason I went with them is phone tech support. And they specialize in Mac people I guess.
Had a bit of trouble with the cpanel, as they have some of us on a 'legacy' server which has no cpanel. Its OK by me. But when they lost the other server, they let us switch over to the new one for no cost.
And now I do have the cpanel on my other site.  When I need extra help, I can call, and they are really nice about explaining stuff that sometimes is out of the realm of their official tech support info.

The dinsol webhost is neat, Ive been looking at some of their tutorials.
Jane

Offline FLASH1296

  • Super Duper Poster
  • ****
  • Posts: 468
    • View Profile
    • http://
Just found we can host our own site on our Macs!
« Reply #7 on: October 23, 2009, 01:56:54 PM »
Firstly, securing your Mac with a password is a no-brainer.

Secondly, as you assuredly have a dynamic i.p. address

you simply get a FREE "redirected" I.P. account.

Thus you will give friends and anyone who you want to have access to your Mac

a link that will look something like   janesgoodfiles.no-ip.com

Then, if the person goes to Finder's Connect to SERVER command (command-K)

in the Finder "GO" menu - on the Finder Menu Bar,

they will simply enter the password that you have provided and VOILA !

The best is no-ip.com

http://www.no-ip.com/

Also very good is dyndsl.com

http://www.dyndns.com/about/
« Last Edit: October 23, 2009, 02:59:22 PM by chriskleeman »

Offline jcarter

  • TS Addict
  • *****
  • Posts: 5808
    • View Profile
    • http://www.jcarter.net/ourdogs/muffinpage.html
Just found we can host our own site on our Macs!
« Reply #8 on: October 23, 2009, 02:20:40 PM »
Hi Flash,
That sounds neat! But if we arent home, our computers are off.  Nor would I want anybody to have access to our Macs, friends maybe, but Im not really sure what could be done with that.  Our kids would be a yes, they could log in from their houses.  Within our house everything is networked so that we can see or play with any of the Macs. But outside the house, for people outside the family,,,,,I would have to think about that.
Yes, I could put in a password, but then we would have to enter it here at home as well.  

no-ip.com looks neat too, though nothing would connect if our machines were off.
I tried that with the link I put in this morning with friends, only works till the machine goes to sleep.

Ive learned a lot this morning!
Jane

Offline FLASH1296

  • Super Duper Poster
  • ****
  • Posts: 468
    • View Profile
    • http://
Just found we can host our own site on our Macs!
« Reply #9 on: October 23, 2009, 02:27:42 PM »
Firstly, Macs should not be turned off unless you are going to be away for several days, otherwise they simply sleep or hibernate.

The password is not an issue for you and family as the administrators can have BLANK passwords.
« Last Edit: October 23, 2009, 03:01:34 PM by chriskleeman »

Offline jcarter

  • TS Addict
  • *****
  • Posts: 5808
    • View Profile
    • http://www.jcarter.net/ourdogs/muffinpage.html
Just found we can host our own site on our Macs!
« Reply #10 on: October 23, 2009, 02:57:51 PM »
Yes, I LOVE blank passwords.

When my other Mac sleeps, you cant get to that link.
http://192.168.1.3/~Jane/
I will keep it one on for a while. Just run a slide show with Preview does it, so I dont have to change my settings.


Offline Paddy

  • Administrator
  • TS Addict
  • *****
  • Posts: 13797
    • View Profile
    • https://www.paddyduncan.com
Just found we can host our own site on our Macs!
« Reply #11 on: October 23, 2009, 04:49:26 PM »
In order to have your Mac work as a server, you'd have to set the energy saver prefs to have it never sleep. (you can let the monitor sleep, however) Web servers don't sleep. wink.gif

But as I noted, only people within your own network can reach the 192.168.x.x URL. Anything else requires something along the lines of what Flash mentions. But again - not an especially good idea to try to run a web server on residential broadband.

From Comcast's list of Prohibited Uses and Activities:
QUOTE
• use or run dedicated, stand-alone equipment or servers from the Premises that provide network content or any other services to anyone outside of your Premises local area network (“Premises LAN”), also commonly referred to as public services or servers. Examples of prohibited equipment and servers include, but are not limited to, e-mail, Web hosting, file sharing, and proxy services and servers;


http://www.comcast.net/terms/use/
"If computers get too powerful, we can organize them into committees. That'll do them in." ~Author unknown •iMac 5K, 27" 3.6Ghz i9 (2019) • 16" M1 MBP(2021) • 9.7" iPad Pro • iPhone 13

Offline jchuzi

  • TS Addict
  • *****
  • Posts: 3094
    • View Profile
Just found we can host our own site on our Macs!
« Reply #12 on: October 23, 2009, 05:06:38 PM »
QUOTE(FLASH1296 @ Oct 23 2009, 03:27 PM) <{POST_SNAPBACK}>
The password is not an issue for you and family as the administrators can have BLANK passwords.
Yes, but there's a problem with that in 10.5 and, presumably, 10.6. If you opt to use sudo in Terminal, a blank password will not be accepted. In addition, File Salvage requires a password in order to launch it and FS does not accept a blank password either. There may be other instances of problems with blank passwords but those are the two that I know.
« Last Edit: October 23, 2009, 05:09:14 PM by jchuzi »
Jon

macOS 11.7.10, iMac Retina 5K 27-inch, late 2014, 3.5 GHz Intel Core i5, 1 TB fusion drive, 16 GB RAM, Epson SureColor P700, Photoshop CC, Lightroom CC, MS Office 365

Offline jcarter

  • TS Addict
  • *****
  • Posts: 5808
    • View Profile
    • http://www.jcarter.net/ourdogs/muffinpage.html
Just found we can host our own site on our Macs!
« Reply #13 on: October 23, 2009, 07:48:19 PM »
Whew, this is getting beyond me now. I just thought I would try something that was installed on my new Mac.  I like to experiment around with stuff in the Mac magazines.
Though I will try most anything that is fun,,,, if its not bad for the computer.
Jane
 

Offline sandbox

  • TS Addict
  • *****
  • Posts: 7825
    • View Profile
    • http://
Just found we can host our own site on our Macs!
« Reply #14 on: October 24, 2009, 03:06:44 AM »
QUOTE(Paddy @ Oct 23 2009, 11:51 AM) <{POST_SNAPBACK}>
Jane, 192.168.x.x is a PRIVATE IP address - nobody in the outside world will be able to see it.

I've just signed one of my clients up with http://www.dinsol.com - $37/year for oodles of room & bandwidth, CPanel, etc. Already I've noticed their servers are FAST - faster than than the ones at GoDaddy where the site was hosted before. Sandbox recommended them, so I'm trying 'em out. They also have a $19/yr plan that would be enough for many.


They seem to be working out OK so far Paddy. wink.gif

Jane, I ran a server at my office for a while, and it's better to use server software.
Your computer will always be running, so try not to use a large multiple drive CPU.
The new MiNi servers would be great, and for $1000 they're a bargain.
I needed a commercial account with a dedicated IP address to legally operate a server, I ran it without the account for a few weeks before I decided, just to see if it would be useful. After a few months I decided that i didn't want to be operating servers. It's a 24/7 job and I was doing it as a favor for local non-profits. When web hosts became less expensive I convinced everyone that it was better to have their sites on a 24/7 host.
« Last Edit: October 24, 2009, 03:11:35 AM by sandbox »