logo

The ConnectWise Control forum has moved to ConnectWise University! This forum has been locked and is in read-only mode. Click here for instructions on how to access the new forum.

Welcome Guest! You can not login or register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Sylvia  
#1 Posted : Wednesday, January 18, 2017 4:14:36 AM(UTC)
Sylvia


Rank: Newbie

Joined: 3/4/2016(UTC)
Posts: 5
United States

Hi Screen Connect Team,

I am using screen connect version 5.6 (both server and client). my client process is Java. For some reason, some of our clients won't be able to connect to the session. My java process could get the cookies, just can't connect to screen connect server without exception. Is there anything that I could check?

=============
here is the cookies

Cache-Control=[private]
Server=[nginx/1.9.3]
Connection=[Keep-Alive]
Set-Cookie=[SessionValueCreated=?y=Guest&s=4eb774f9-fb34-4da9-82a8-679647742747&k=BgIAAACkAABSU0ExAAgAAAEAAQDjmCVbnkXJLHv3KRbAmKO8vONb%2bKwlwRpvJAiASqKsbXEB06lzAFaw11XvrRcOPzUw13KYkUBNAaiuTUY53SR3rdusmwZgHB%2f2%2bGXhG3uNWNeABguLpUgeRHzf2zv0nH5HyM%2brnSt%2bAyVLgzZq4g4IQxqfs4y6XITufzUYHfzSHYwi1%2fHqVKm%2fyNEI1l6UFNuVR5uy2llgnYnWLC7HC3DvVaEC%2fpoK2jFde7PBZYk6U1Lfkx81bEkGHKul9vKDdt25WBQC8kU%2f%2fWN88qGTaCwDhTO%2fkTpo8BiyyXlnYZcwgfLB9GU4t3EG8wvZF02Eyl5iJ8%2fVfxHOJlFl0XS38HH0; expires=Wed, 18-Jan-2017 01:08:20 GMT; path=/]
ueCreated=?y=Guest&s=4eb774f9-fb34-4da9-82a8-679647742747&k=BgIAAACkAABSU0ExAAgAAAEAAQDjmCVbnkXJLHv3KRbAmKO8vONb%2bKwlwRpvJAiASqKsbXEB06lzAFaw11XvrRcOPzUw13KYkUBNAaiuTUY53SR3rdusmwZgHB%2f2%2bGXhG3uNWNeABguLpUgeRHzf2zv0nH5HyM%2brnSt%2bAyVLgzZq4g4IQxqfs4y6XITufzUYHfzSHYwi1%2fHqVKm%2fyNEI1l6UFNuVR5uy2llgnYnWLC7HC3DvVaEC%2fpoK2jFde7PBZYk6U1Lfkx81bEkGHKul9vKDdt25WBQC8kU%2f%2fWN88qGTaCwDhTO%2fkTpo8BiyyXlnYZcwgfLB9GU4t3EG8wvZF02Eyl5iJ8%2fVfxHOJlFl0XS38HH0; expires=Wed, 18-Jan-2017 01:08:20 GMT; path=/
Proxy-Connection=[Keep-Alive]
P3P=[CP="NON CUR OUR STP STA PRE"]
Content-Length=[11254]
Age=[0]
Date=[Tue, 17 Jan 2017 21:48:24 GMT]
Content-Type=[text/html; charset=utf-8]

================
Here is my java code:


clp.sessionID = SID;
clp.encryptionKey = new ByteArraySegment(Base64.decode(EncryptionKey));
clp.host = relayHost != null ? relayHost : getScreenConnectHost();
clp.port = relayHost != null ? getRelayPort() : getRVFIConnectPort();//Integer.parseInt(screenConnectPort);
//clp.port = relayHost != null ? relayPort : RVFIConnectPort;//Integer.parseInt(screenConnectPort);
clp.processType = getProcessType();
clp.sessionType = getSessionType();
clp.sessionTitle = getSessionTitle();


//SCClient = Client.create(clp);

SocketEndPointManager endPointManager = new SocketEndPointManager(clp, ClientExtensions.getVersion(), ClientType.JAVA_SWING);
SCClient = new Client(endPointManager);

SCClient.start(new Runnable() {
public void run() {
logger.info("Screen Connect session exited " + standAloneApp);
// allow to exit gracefully if started from main app and not from RVFI
if (standAloneApp)
System.exit(0);
}
});


thanks,
Sylvia

Scott  
#2 Posted : Wednesday, January 18, 2017 5:29:10 PM(UTC)
Scott


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 3/28/2014(UTC)
Posts: 2,862
United States

Thanks: 3 times
Was thanked: 351 time(s) in 303 post(s)
What exception are you getting when attempting to connect?
ScreenConnect Team
Sylvia  
#3 Posted : Thursday, February 2, 2017 2:07:57 PM(UTC)
Sylvia


Rank: Newbie

Joined: 3/4/2016(UTC)
Posts: 5
United States

Unfortunately, there's no exception or error while trying connect. Is there any screenconnect api internal log that I could get from pc?
Scott  
#4 Posted : Thursday, February 9, 2017 10:00:09 PM(UTC)
Scott


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 3/28/2014(UTC)
Posts: 2,862
United States

Thanks: 3 times
Was thanked: 351 time(s) in 303 post(s)
No exceptions?

Quote:
My java process could get the cookies, just can't connect to screen connect server without exception


What exactly happens when you attempt to connect? Can you post a screenshot?
ScreenConnect Team
charles.tsai  
#5 Posted : Tuesday, February 14, 2017 2:14:33 PM(UTC)
charles.tsai


Rank: Newbie

Joined: 2/14/2017(UTC)
Posts: 10
United States
Location: New York

Thanks: 1 times
Unfortunately this is on client machine and these are all information we got....
We are trying to use Java API SCClient to connect the created session using SessionID. SCClient.start() method didn't throw any exception.
However, the session seems not connected. Because the client's environment, we are not able to using web browser to join the session as well.
Is there any place we can turn on the API log?
Alexander  
#6 Posted : Tuesday, February 21, 2017 4:09:47 PM(UTC)
Alexander


Rank: Administration

Medals: Level 3: Shirt off your back! Received 25 Thanks!

Joined: 7/23/2013(UTC)
Posts: 715
Man
Location: Raleigh, NC

Was thanked: 66 time(s) in 63 post(s)
There is a trace you can enable to print all the messages between the client and the server to stdout: System.setProperty(TraceSource.getEnablingPropertyKey("SocketEndPointManager"), "true");
You can also change where it logs to with TraceSource.setOut(PrintStream out)
ScreenConnect Team
thanks 1 user thanked Alexander for this useful post.
charles.tsai on 4/13/2017(UTC)
charles.tsai  
#7 Posted : Thursday, April 13, 2017 2:56:16 PM(UTC)
charles.tsai


Rank: Newbie

Joined: 2/14/2017(UTC)
Posts: 10
United States
Location: New York

Thanks: 1 times
I can see the log message now. Thanks
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.