Home Forum Blog Market Events Resources
Showing results for 
Search instead for 
Do you mean 
Highlighted
csi
Occasional Contributor
Posts: 8
Registered: ‎01-27-2017
Accepted Solution

Etablir une connexion à partir d'un client (SourceCode.Workflow.Client) vers une instance K2.

   Bonjour,
 
   Je cherche a établir une connexion à partir d'un client (SourceCode.Workflow.Client) vers une instance K2.
 
   Le client se trouve sur ma même machine que K2
 
   Dans la string de connexion il est demandé d'entrer le host de K2.
 
   Où puis-je trouver cette valeur?
 
   G essayé 
 
   - "localhost" (port 80 et 5252)
   - "127.0.0.1" (port 80 et 5252)
   - "IP Du Serveur" (port 80 et 5252)
   - "k2workspace-xxx.be"  (port 80 et 5252​)
 
   Le message d'erreur m'indique à chaque fois:
 
Unable to resolve address 
No such host is known.
 
   Toute suggestion sera la bienvenue.
 
Cordialement.
Claude
Moderator
Posts: 301
Registered: ‎04-22-2014

Re: Etablir une connexion à partir d'un client (SourceCode.Workflow.Client) vers une instance K2.

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.




K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member.

csi
Occasional Contributor
Posts: 8
Registered: ‎01-27-2017

Re: Etablir une connexion à partir d'un client (SourceCode.Workflow.Client) vers une instance K2.

   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.
    <------

Moderator
Posts: 301
Registered: ‎04-22-2014

Re: Etablir une connexion à partir d'un client (SourceCode.Workflow.Client) vers une instance K2.

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.




K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member.

csi
Occasional Contributor
Posts: 8
Registered: ‎01-27-2017

Re: Etablir une connexion à partir d'un client (SourceCode.Workflow.Client) vers une instance K2.

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?