Using k2 in a live internet-based environment
I am currently going through the motions of setting up a live K2 environment for use by a client, the difference here is that they have users who are very mobile, so the k2 and SharePoint servers need to be accessible via the internet. So below are a list of things you will need to do in order for your solution to work correctly.
Note: this is for a distributed system, working with K2 Blackpoint and SharePoint 2010.
First things first, here is the setup of the environment:
- Server A: DNS
- Server B: SharePoint 2010
- Server C: K2 Blackpoint
- Server D: Sql Server 2008 R2
All servers are running Windows Server 2008 R2 as well.
The assumption I am making here is that you have setup K2, SharePoint, MSDTC, Kerberos, so that you can run processes internally on the domain. All I am going to detail is what you need to do so that users who come in from the internet can use the processes.
SharePoint 2010 (Server B)
Make sure you have the following setup:
- domain with the record pointing to the public IP of the SP2010 server.
- port 80 open for Inbound traffic on the external firewall.
K2 Blackpoint (Server C)
Make sure you have the following setup:
- domain or sub domain with the record pointing to the public IP of the K2 server.
- A host header on the Runtime Services website for the above domain or sub domain.
- the following ports open for inbound traffic on the external firewall:
- 80
- 81
- 5252 (K2Server port)
- 5555 (K2HostServer port)
Note: If you have installed K2 and SharePoint on the same server, you will only need one domain to access both and this domain should be setup for access to the SharePoint site, and just make sure that the all the ports listed above under K2 are open for inbound traffic as well.
Once that is done, you will need to run the K2 configuration wizard on server C, if you have created your host header correctly, it should pick it up. Finish up with the wizard and it should all work, just verify that it all works from an external location. If not make sure that it all works internally (Remote into one of the machines if you have to), then check that you have satisfied the above conditions for both the K2 and SharePoint servers. If you don’t come right, contact me and I will try to give you a hand.
One thing I did notice was re running the configuration wizard changed an environment field value. So just make sure that your environment fields are correct after you have finished.
Disclaimer:
Please read the disclaimer if you plan on using anything from this article.

