Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Networking > How do I serve a website from my mac across the world?

How do I serve a website from my mac across the world?
Thread Tools
Senior User
Join Date: Jul 2001
Status: Offline
Reply With Quote
Jul 30, 2006, 07:52 PM
 
I have to make a website viewable from my mac to be viewed across the world while I am in development mode

I am using ruby on rails but thats beside the point... I think.. I turned on web shareing access on my mac in sharing system pref and found the the root address instead of the user one,, and while I was on teh same network it worked fine...

But now that I am out across the city I can't get it to work... it kinda looked like it would not work since it started with 192..... but whatever I don't know much about network numbers and all that just yet...

Anyone have clues ??
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Jul 30, 2006, 08:39 PM
 
You have to make your local computer visible to the Internet, and with a 192... IP, right now it CANNOT BE. The first step would be to configure your router to put that computer into a "DMZ." This exposes whichever LAN IP you select to the Internet without any processing by the router.

Note that many ISPs not only "frown on" serving from customer computers, but consider it a violation of their user agreement, and cause for disconnection. Be careful and don't get into trouble.
Glenn -----
OTR/L, MOT, Tx
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 30, 2006, 08:50 PM
 
You can use your IP address using port forwarding, but it might be easier to look at getting a DNS entry setup. The dyndns stuff seems pretty good for people who do not have a static IP address.
     
loren s  (op)
Senior User
Join Date: Jul 2001
Status: Offline
Reply With Quote
Jul 30, 2006, 08:58 PM
 
anp! static ip address, I forgot about those, we have a few of those.. silly me..

Will the files still live in root/library/webserver ? when i turn on my rails application it uses port localhost:3000 so will the static ip look like so ? 222.222.222.4:3000/websitefolder...

??
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 30, 2006, 09:02 PM
 
Originally Posted by loren s
anp! static ip address, I forgot about those, we have a few of those.. silly me..

Will the files still live in root/library/webserver ? when i turn on my rails application it uses port localhost:3000 so will the static ip look like so ? 222.222.222.4:3000/websitefolder...

??

The document root for Apache in OS X is /Library/WebServer/Documents, although you can easily change this. I don't konw what the document root for files served from your Ruby thing over port 3000 will be, but you have the idea.
     
loren s  (op)
Senior User
Join Date: Jul 2001
Status: Offline
Reply With Quote
Jul 31, 2006, 09:22 AM
 
Hmmm so I found our ip,. something 216,,, but When I input that into network using dhcp with manual address I get no connection anymore...

Sigh,, why can't I use my mac to connect to the router box ? Why do I have to use pcs to connect to them to configure them ??
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 31, 2006, 09:26 AM
 
Originally Posted by loren s
Hmmm so I found our ip,. something 216,,, but When I input that into network using dhcp with manual address I get no connection anymore...

Sigh,, why can't I use my mac to connect to the router box ? Why do I have to use pcs to connect to them to configure them ??

Could you clarify? I have no clue what you are talking about...


How does the means in which you are assigned an IP address affect what you can or cannot connect to?

Can you ping this address?


What do you mean by "connect to the router box"? Do you mean access the router admin page? Access the internet going through the router? What do PCs have to do with this?
     
loren s  (op)
Senior User
Join Date: Jul 2001
Status: Offline
Reply With Quote
Jul 31, 2006, 09:45 AM
 
Appoligies for that,, it made sense in my head

the 216... is my static ip address I have found out that I have. I inputed the numbers into the System pref app under network configuration panel. Configure IPv4 Using DHCP with manual address. There I pasted in the ip address. Afterwards I tried to connect to a webpage via normal use of google and I have no connection anywmore using that ip address..

I shall try to ping in a sec,

If I need to access the router admin page via it's default ip address I have always had to connect via a windows pc computer to edit any settings before. Just in case their are options for that is there anyway I can preform these connections via my mac ? Otherwise I have to hop computers in a sec
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 31, 2006, 09:47 AM
 
Originally Posted by loren s
Appoligies for that,, it made sense in my head

the 216... is my static ip address I have found out that I have. I inputed the numbers into the System pref app under network configuration panel. Configure IPv4 Using DHCP with manual address. There I pasted in the ip address. Afterwards I tried to connect to a webpage via normal use of google and I have no connection anywmore using that ip address..

I shall try to ping in a sec,

If I need to access the router admin page via it's default ip address I have always had to connect via a windows pc computer to edit any settings before. Just in case their are options for that is there anyway I can preform these connections via my mac ? Otherwise I have to hop computers in a sec

You can't just plug in your IP address and hope that it will work. You need to know your subnet mask and your Gateway IP address. Without these, you will be net blind.

Router admin interfaces are generally web interfaces. Unless the web interface uses some IE/Active X only technologies, you should be able to access the interface from any web browser.
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Jul 31, 2006, 10:35 AM
 
Further, the IP of your LAN computer WILL NOT show up on the Internet. Instead your WAN IP (the external address of your modem) is what you want to see from the Internet.

You set it up so that when your WAN address is contacted the specified computer is what responds. Do this by turning on the DMZ feature of your router (you haven't mentioned what hardware you have or even what kind of broadband connection you have, so I'm being very general here), and assign the computer you want to serve those web pages a static LAN IP (something like 192.168.1.005, assuming your LAN is on a 192.168.1.x subnet), then tell the DMZ setup in the router what that static IP is. After that, the big issue is keeping up with your ISP-assigned, probably dynamic WAN IP.

BTW, I haven't yet seen a router interface that depended on Active X or other IE "enhancements." You might have some java issues using Safari, but probably not if your browser is up to date.
Glenn -----
OTR/L, MOT, Tx
     
loren s  (op)
Senior User
Join Date: Jul 2001
Status: Offline
Reply With Quote
Jul 31, 2006, 07:10 PM
 
hmmm,, not on it right now,, but the hardware is us robotics, and the connection is a slow T1.. yeah I said slow,, something just an't right about it, but thats not my jurisdiction area
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 04:13 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2