Testing running a web site from home

new BookmarkLockedFalling
ezmoney
Junior Member
**

ezmoney Avatar

Posts: 69

Post by ezmoney on Mar 9, 2013 12:28:58 GMT -5


This might be fun to run a web site from home... :D

I thought someone might have a web site that says "Hellow World "and I could use a free web site host to set that up in... run basic...

and access it from different computuers.

Or maybe a web site that does searches with the httpget command.

Some web sites require an email and they send you a link and
you click on that link to make your account active....

Does anyone have that code?





meerkat
Senior Member
****

meerkat Avatar

Posts: 250

Post by meerkat on Mar 10, 2013 8:15:59 GMT -5

This might be fun to run a web site from home...

Now days it's usually free to set up a home server. The ISP's rarely, if ever, change the IP anymore. Especially the cable providers. Even if they do change it isn't that often. Therefore you have the equivalent of a static IP. If you have a domain name you can point your domain to your IP. If not, use your IP in the URL. You can check your router for your IP or use canyouseeme.org/ to find it and see if port 80 is blocked.
You can then use something like www.wampserver.com/en/ to set up Apache and run Run Basic behind it.
Or set Run Basic Preferences "Serve on port:" to port 80 and use Run Basic as the server.

My server runs on a netbook for a couple of reasons:
1. They use very little electricity. Typically a tower PC can run about 20ドル to 25ドル a month in electrical cost where a netbook will be about 2ドル to 4ドル.
2. It has a built in battery for backup. My netbook will run for about 4 hours without electric power.



I thought someone might have a web site that says "Hellow World "and I could use a free web site host to set that up in... run basic...

and access it from different computuers.


You can set Run Basic Preferences "Home Page project name:" to run your home page. Usually you have a web page here that gives the user various options you want to run.
For example:
1. Hello World.
2. Please Sign in.
3. Web Search

Or maybe a web site that does searches with the httpget command.

Your web search option may ask them for a search and you could use one of the existing browsers to interface your search.
See: rosettacode.org/wiki/Yahoo!_search_interface#Run_BASIC


Some web sites require an email and they send you a link and
you click on that link to make your account active....
Does anyone have that code?


I run several applications from home. Most require a Login. This is maintained with SQLite. The Managers can set up accounts and determine their access levels. Each person gets a personal menu. When they sign in, only information they have access to shows up in their menu.

Hope this helps
Last Edit: Mar 10, 2013 17:25:39 GMT -5 by StefanPendl
ezmoney
Junior Member
**

ezmoney Avatar

Posts: 69

Post by ezmoney on Mar 12, 2013 7:49:46 GMT -5

Switching to port 8080 was not a problem.

I copyed the code and it did not copy and paste correctly... that was really a mess...

So I worked that out and ....

It works !!!!....

but I'm new at this and am scratching my head as to how to get this loaded to make a web site... I would assume a free web site would work... Is there a limit to how many web sites...

Is there a way to inform all the other websites of the same user email's so all work for any user?

Or get the web to recognize a domain name.....


Once I load this on the web will it run on my machine or the host machine I post the web on,

Or does it run on the server machine(run basic) ?

If there is an server error .. what happens?

I wanted to set up a quick way to email me but other than posting an

ezmoneyinvest [at] gmail [dot] com

I wondered if anybody had the code to send an email back...

or maybe that can be done simply with html code..



Stefan: never post an e-mail in plain text or your e-mail account will explode due to heavy spam traffic
Last Edit: Mar 13, 2013 14:42:26 GMT -5 by StefanPendl
meerkat
Senior Member
****

meerkat Avatar

Posts: 250

Post by meerkat on Mar 12, 2013 15:17:50 GMT -5

Ok By the numbers:
1. Lets assume you have a domain name. If not, they are usually around 10ドル / year.
Godaddy usually has decent prices. www.godaddy.com/
Since most domains are already owned, you may have to enter several names before you find a open one.

For this discussion we will assume your domain is www.myDomain.com

2. Your server usually listens for port 80. Some ISP's don't like you to set up servers, because they tend to be more active on the web. To see if it's blocked go to www.canyouseeme.org/ and check port 80 to see if it's blocked.
If you use some other port like 8080 the user will enter the domain as www.myDomain.com:8080

For this discussion we will assume you are using a linksys router and you are using windows, and have Run Basic set to use port 80.

3. Your router assigns a IPv4 Address to each computer it talks to. Normally it's something like 192.168.1.100
To see what was assigned to your pc by your router go to the DOS prompt and type ipconfig.
If you are using windows/7 then click the start button and enter cmd.

4. We now know your ip and what number your PC was assigned by the router.
We need to tell the router what computer port 80 (the web service) will use so it knows where to send web request.
Get into your router. To do that, in the URL type 198.168.1.1 and enter your username/password.
Go to the "Accounting & Gaming" tab. This is usually called "Port Forwarding". In the "External Port" and "Internal Port" enter 80. Set the "Protocol" to Both. Now if your router has assigned your PC 192.168.1.100, enter that in the "To IP Address" and check Enabled on.

The web now know when someone enters www.myDomain.com that it should go to the compute assigned to 192.168.1.100.

5. There is still one other problem. How does the web know where to route your domain. This is done where you bought your domain. If you bought it at GoDaddy then sign in to GoDaddy with your account. Set your domain to point to your IP. You can get support from GoDaddy if your not sure how to do this.
GoDaddy updates all the routers with your IP address.

Now when someone enters your Domain, it looks at the IP address setup in #5 and routes the message to your site. Your router then looks to see where to forward port 80 and sends the request to that computer..

Hope this helps
ezmoney
Junior Member
**

ezmoney Avatar

Posts: 69

meerkat
Senior Member
****

meerkat Avatar

Posts: 250

Post by meerkat on Mar 13, 2013 8:36:13 GMT -5

But how does the port know to go to my website program on my computer.


It knows because you linked your domain name to your IP. When they enter your domain it goes to that domain's IP.
If you don't have a domain then you can enter your IP directly in the URL to test this. If your IP is 20.30.60.80, to open your Run Basic with port 8080 then enter 20.40.60.80:8080 and it will ask for a user/pass.

Best to set it to 80 cause that's the default for web services.

What about my other RB programs I run on port 8080?

You can click on the "Launch in Browser" button on the Run BASIC Console. You can still run stuff locally even if other people are launching stuff on your Run BASIC from the web.
In the Run BASIC "Preferences" tab set "Home page project name:" to whatever you want the people on the web to run.
I'm running my Run BASIC behind Apache. So I left the the Run BASIC server port at 8008 since Apache uses port 80. I launch Run Basic projects from a button or a link on a web page as follows:
<A HREF="http://www.myDomain.com:8008/seaside/go/runbasicpersonal?app=theRBapp" target="_blank">

is there a way to upload the RB program or a (compiled version) to the web?

Not sure why you would want to do this. The whole idea of Run BASIC Is to service web requests.
But yes you can upload stuff to the users by linking them to a page where your files are located.

Normally we never want to upload programs to the users. We usually don't want them to have our code. They only see web pages produced by Run BASIC.

hope this helps