Hi,
Correct me if I'm wrong. You are having problems connecting to your K2 server from a client? And your client is on the same machine as K2? If it is on the same machine, localhost should work. K2 uses port 5555 and 5252, and for connection to SourceCode.Workflow.Client, you should use port 5252.
If you are still getting unknown host errors, try opening SmartObject Service Tester > Tools > Server properties. It should show your server name, which you can use in your client.
If you are getting connection issues, please check if your K2 server is listening to the correct port. You can check this by opening Resource Monitor, go to the Network tab, open up 'Listening Ports', and search for 'K2HostServer.exe'. It should show which ports K2 is using.
Hello and thank you for the reply.
Yes, the client call (SourceCode.Workflow.Client) to K2 is made from the same server.
I went to SmartObject Service Tester > Tools > Server properties and found:
Recent servers: K2server-dev.xxx.be:5555
Server Name: K2server-dev.xxx.be
Server port: 5555
Then I called on the port 5555 those hosts: localhost, 127.0.0.1, K2server-dev.xxx.be.
(previously I already tried: callon the port 5252 on those hosts: localhost, 127.0.0.1, K2server-dev.xxx.be.)
The result was the same: Unable to resolve address No such host is known.
Try 1, I configure my has following:
K2ConnStringBuilder.Host = "localhost";
K2ConnStringBuilder.Authenticate = true;
K2ConnStringBuilder.UserID = @"...myUser...";
K2ConnStringBuilder.Password = "...myPassWord...";
K2ConnStringBuilder.Port = 5555;
K2ConnStringBuilder.IsPrimaryLogin = true;
K2ConnStringBuilder.SecurityLabelName = "K2";
Error message----->
Error
Unable to resolve address
Integrated=False;
IsPrimaryLogin=True;
Authenticate=True;
EncryptedPassword=False;
CachePassword=True;
Host=localhost;
UserID=...myUser...;
Password=...myPassWord...;
Port=5555;
SecurityLabelName=K2 and port 5252.
No such host is known.
<------
Try 2, I configure my has following:
K2ConnStringBuilder.Host = "K2server-dev.xxx.be";
K2ConnStringBuilder.Authenticate = true;
K2ConnStringBuilder.UserID = @"...myUser...";
K2ConnStringBuilder.Password = "...myPassWord";
K2ConnStringBuilder.Port = 5555;
K2ConnStringBuilder.IsPrimaryLogin = true;
K2ConnStringBuilder.SecurityLabelName = "K2";
Error message----->
Error
Unable to resolve address Integrated=False;
IsPrimaryLogin=True;
Authenticate=True;
EncryptedPassword=False;
CachePassword=True;
Host=k2workspace-dev.forem.be;
UserID=...;
Password=...;
Port=5555 and port 5252. No such host is known.
No such host is known.
<------
Try 3, I configure my has following:
K2ConnStringBuilder.Host = "127.0.0.1";
K2ConnStringBuilder.Authenticate = true;
K2ConnStringBuilder.UserID = @"...myUser...";
K2ConnStringBuilder.Password = "...myPassWord";
K2ConnStringBuilder.Port = 5555;
K2ConnStringBuilder.IsPrimaryLogin = true;
K2ConnStringBuilder.SecurityLabelName = "K2";
Error message----->
Error
Unable to resolve address
Integrated=False;
IsPrimaryLogin=True;
Authenticate=True;
EncryptedPassword=False;C
achePassword=True;
Host=127.0.0.1;
UserID=...;
Password=...;
Port=5555 and port 5252.
No such host is known.
<------
Hi,
Try sticking to "K2server-dev.xxx.be" for your host. Open command prompt, and do a ping on that host name:
ping K2server-dev.xxx.be
Does it return any ip address? Is there any responses returning from that host? Is the ip address returned correct? That ip address should be the ip address of your K2 server.
When I ping to K2server-dev.xxx.be, I got an IP displaying and no packets are lost.
How can I check if the returned IP is the one of the server K2?
Hi,
Do you have access to your K2 server? On your K2 server, open command prompt, and run this command: ipconfig
Look at the IPv4 address, and check if it matches the ip address returned from your ping.
Yes I got access.
Yes the IP in IPv4 is the same as the one retuned by ping k2workspace-dev.forem.be
When I do a nslookup and when I enter the adress 'k2workspace-dev.xxx.be' I got back the mapping with the IP found previously, the alias and the server name.
Notice that to call the client I use:
//creating a more advanced connection with the connec
SourceCode.Hosting.Client.BaseAPI.SCConnectionStringB
K2ConnStringBuilder =
new SourceCode.Hosting.
Client.BaseAPI.SCConnectionStringBuilder();
K2ConnStringBuilder.Host
K2ConnStringBuilder.Authenticate
K2ConnStringBuilder.UserID
K2ConnStringBuilder.Password
K2ConnStringBuilder.Port
K2ConnStringBuilder.IsPrimaryLogin
K2ConnStringBuilder.SecurityLabelName
K2Conn.Open(K2ConnStringBuilder.ToString());
Hmm...that is strange. Do you get the same error if you used the ip address you get from the ping or nslookup in the connection string?
Hi,
Out of curiosity, Can you try telnet command on port 5252 from your client machine ? For example, telnet K2server-dev.xxx.b k2_server_port, the port can be either 5252 or 5555.
You might have to install telnet client feature on your machine.
Hello,
I have not the right to install telnet on the serveur.
But looking inti the k2 management -> workflow serveur string table -> developpement-> Workflow server, I got the port
Integrated=True;IsPrimaryLogin=True;Authenticate=True;EncryptedPassword=False;Host=k2server-dev.xxx.be;Port=5252
Regards
Claude
Let me thank every body for their help.
I finnaly found the problem:
...
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.