### Setup B4J as Public WebServer

This is an example on how to setup a local B4J webserver as a public webserver.
It makes use of a DDNS which routes the server requests to the local server.
There are many DDNS available. For this example DuckDNS - a free DDNS, is used.
Register DuckDNS
Go to www.duckdns.org and login with your Google Account (or others, see top right of the duckdns homepage).
In return you will get a welcome screen with information, like the token.
Add a domain name.
For this example mydomain is used.
Configure Port Forwarding on the local router
For NetGear as an example:
• open routerlogin.net
• login with username/password
• select tab advanced
• go to advanced settings
• select Port Forwarding
• Add Custom Service (Name: B4JServer, Type: TCP, Start and End Port: 51042)
• Add this service with settings:
• Action: Always, Send to LAN Server (enter last digit N of the local server, like 192.168.0.9), WAN servers Any, Log: Never
Install and start DuckDNS Updater
This depends on which OS - see www.duckdns.org > Install
In this case I run the linux jar:
java -jar duckdnsupdater.jar
Go to the taskbar, right click on the duckdns updater and select Settings. Enter domain and token.
Start your application as B4J WebServer
Make sure port 51042 is set:
srvr.Port = 51042
Access the local B4J WebServer from Public
Open Browser and enter URL: mydomain.duckdns.org:51042
If not working, test if server can be accesses locally:
localhost:51042

Changed: , Category: WebApps, File: T6C277M2077.htm, ID: 2077