Post by carlgundel on Jan 7, 2008 16:39:07 GMT -5
One option open to Run BASIC users for hosting a site on the Internet is to do it at home. Another option is to buy VPS (Virtual Private Server) hosting service, but we'll have another thread about that.
Okay, first things first. Simply the act of starting up Run BASIC gives you an application server. Add your app, and bingo you're in business... but only on your local network. You need to expose your running copy of Run BASIC Personal Server to the Internet.
How does your RB server get made available for visitors? You need to tweak your router so that it will open a port (usually port 80 for webservers) so that it will be visible. The Run BASIC site itself does this. Each router is different, so it is difficult to present a tutorial here that is good for all of them. It's not that hard, and in fact a lot of young people do this all the time to setup game servers. If you arent' sure how to do this, then google your router brand name and model number and the words "open a port" or "port forwarding" you will probably find what you need.
Here's a link that explains the concept using a Linksys router for an example www.home-network-help.com/port-forwarding.html
Okay so now let assume that we've got a port opened to your PC running Run BASIC. The next thing is that you need to know what the IP address is for your connection to the Internet. The good thing is that if you've managed to open a port, then you already know how to log into your router. That is where you will find the IP address of your connection to the net. Often this is referred to as the WAN IP address.
Okay so if you've got your WAN IP address, there are two different kinds: Static and dynamic. Most people have a dynamic IP address. This means that it changes. Sometimes it may stay the same for weeks at a time, and sometimes it may change several times in a day. If you don't know if you have one or the other, you probably have a dyamic IP address.
For hosting Internet applications a static IP address is preferrable to a dynamic one. Why? Because you can register a domain name (ie. mysupersite.com) for that IP address and it will not change. A dynamic address changes, so you need to use a special feature call dynamic DNS (or DDNS) which watches to see if your IP address changes and then when it does it notifies the directories so that mysupersite.com still points to your computer.
A quick Google for free dns provides this useful lookng site: www.dyndns.com/services/dns/dyndns/
Okay, so we've opened a port, and we've either written down our static IP address or figured out that we need dynamic DNS. What now? We need a domain name. If you have a static IP address you can register a domain name in lots of different places like dotster.com or networksolutions.com (Google register domain). You will need that WAN IP address that you wrote down.
The checklist so far:
-Is Run BASIC running? Check!
-Is a port open? Check!
-Do you have a domain name (static or dynamic)? Check!
Is there anything else? The port number is important. Perhaps this should have been mentioned up front. By default Run BASIC uses port 8008 to serve up pages. The standard for web servers is port 80. This is easy to change if you just go to the Preferences tab in Run BASIC.
Now, there may be a catch to switching from port 8008 to port 80. Some ISPs don't allow their customers to serve up port 80. If that is true for you then you and your friends and other visitors will need to add the port number to the address when they visit your site. So they'll type something like this into the address bar:
www.mysupersite.com:8008
If you're a hobbyist or if this site is essentially private for friends and family, this is not a big deal (unless it just bugs you). If your site is for a business, then you will probably want to do something about it since it won't make it easy for people to find your site if they always have to add the port number.
Okay, so there are three things at least that you can do about this if port 80 is blocked on your broadband account:
1) Contact your ISP and ask to have this restriction lifted
2) Upgrade your account to a business-class one (usually costs more)
3) Change to a different ISP that will not block port 80
While you're on the phone to your ISP you might also ask if it's possible to get a static IP.
Finally, there is at least one more thing to be aware of. The first time someone tries to access your server from the Internet, Windows may pop up a notice asking if the access should be unblocked. Answer yes.
I hope this overview is helpful. Please leave comments if you spot any errors or if you know of any services that RBers will find helpful.
Thanks!
-Carl
Okay, first things first. Simply the act of starting up Run BASIC gives you an application server. Add your app, and bingo you're in business... but only on your local network. You need to expose your running copy of Run BASIC Personal Server to the Internet.
How does your RB server get made available for visitors? You need to tweak your router so that it will open a port (usually port 80 for webservers) so that it will be visible. The Run BASIC site itself does this. Each router is different, so it is difficult to present a tutorial here that is good for all of them. It's not that hard, and in fact a lot of young people do this all the time to setup game servers. If you arent' sure how to do this, then google your router brand name and model number and the words "open a port" or "port forwarding" you will probably find what you need.
Here's a link that explains the concept using a Linksys router for an example www.home-network-help.com/port-forwarding.html
Okay so now let assume that we've got a port opened to your PC running Run BASIC. The next thing is that you need to know what the IP address is for your connection to the Internet. The good thing is that if you've managed to open a port, then you already know how to log into your router. That is where you will find the IP address of your connection to the net. Often this is referred to as the WAN IP address.
Okay so if you've got your WAN IP address, there are two different kinds: Static and dynamic. Most people have a dynamic IP address. This means that it changes. Sometimes it may stay the same for weeks at a time, and sometimes it may change several times in a day. If you don't know if you have one or the other, you probably have a dyamic IP address.
For hosting Internet applications a static IP address is preferrable to a dynamic one. Why? Because you can register a domain name (ie. mysupersite.com) for that IP address and it will not change. A dynamic address changes, so you need to use a special feature call dynamic DNS (or DDNS) which watches to see if your IP address changes and then when it does it notifies the directories so that mysupersite.com still points to your computer.
A quick Google for free dns provides this useful lookng site: www.dyndns.com/services/dns/dyndns/
Okay, so we've opened a port, and we've either written down our static IP address or figured out that we need dynamic DNS. What now? We need a domain name. If you have a static IP address you can register a domain name in lots of different places like dotster.com or networksolutions.com (Google register domain). You will need that WAN IP address that you wrote down.
The checklist so far:
-Is Run BASIC running? Check!
-Is a port open? Check!
-Do you have a domain name (static or dynamic)? Check!
Is there anything else? The port number is important. Perhaps this should have been mentioned up front. By default Run BASIC uses port 8008 to serve up pages. The standard for web servers is port 80. This is easy to change if you just go to the Preferences tab in Run BASIC.
Now, there may be a catch to switching from port 8008 to port 80. Some ISPs don't allow their customers to serve up port 80. If that is true for you then you and your friends and other visitors will need to add the port number to the address when they visit your site. So they'll type something like this into the address bar:
www.mysupersite.com:8008
If you're a hobbyist or if this site is essentially private for friends and family, this is not a big deal (unless it just bugs you). If your site is for a business, then you will probably want to do something about it since it won't make it easy for people to find your site if they always have to add the port number.
Okay, so there are three things at least that you can do about this if port 80 is blocked on your broadband account:
1) Contact your ISP and ask to have this restriction lifted
2) Upgrade your account to a business-class one (usually costs more)
3) Change to a different ISP that will not block port 80
While you're on the phone to your ISP you might also ask if it's possible to get a static IP.
Finally, there is at least one more thing to be aware of. The first time someone tries to access your server from the Internet, Windows may pop up a notice asking if the access should be unblocked. Answer yes.
I hope this overview is helpful. Please leave comments if you spot any errors or if you know of any services that RBers will find helpful.
Thanks!
-Carl