WebServer -- Webserver


Glossary

80 httpserver http

our http-server instance

: server-set-title ( -- )

set title of the console window

s" doc\" Prepend<home>\ webpath place

the path to the web content

: server-choose-path   { \ $path -- }

chosse the path for the folder with the web content

: server-init   ( -- )

init the server

: server-run    ( -- )

run the server

: server-exit   ( -- )

close the server

: www-server    ( -- )

Starts the server. Tell your firewall that Win32Forth is allowed to use port 80.
Then you should able to see the server in your browser by using:
http://localhost/p-index.htm
Assuming that the file p-index.htm is in your webpath.
When you would like to use the websever over the internet.
you must replace "localhost" by your IP-adres.
The IP-adres can be seen at http://checkip.dyndns.org