# TROSynapseHTTPChannel and "Unable to connect to remote server"

**URL:** https://talk.remobjects.com/t/trosynapsehttpchannel-and-unable-to-connect-to-remote-server/13295
**Category:** Remoting SDK
**Tags:** trosynapsehttpchanne
**Created:** [June 7, 2017, 4:45pm UTC](https://talk.remobjects.com/t/trosynapsehttpchannel-and-unable-to-connect-to-remote-server/13295 "2017-06-07T16:45:44Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Armindo\_DA\_SILVA](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/c6cbf5/32.png) [@Armindo\_DA\_SILVA](https://talk.remobjects.com/u/Armindo_DA_SILVA)
#### Post date: [June 7, 2017, 4:45pm UTC](https://talk.remobjects.com/t/trosynapsehttpchannel-and-unable-to-connect-to-remote-server/13295/1 "2017-06-07T16:45:45Z")

</div>

Hi,

I have a Windows Service that consume 2 Soap web services .  
One use TROSynapseHTTPChannel and the other use TROWinInetHTTPChannel

No problem on my PC and on our server with TROWinInetHTTPChannel  
But the one that use TROSynapseHTTPChannel cannot connect to remote server on our server (ok on my PC).

Is there something special to setup with TROSynapseHTTPChannel to avoid this ?

Regards

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [June 8, 2017, 9:13am UTC](https://talk.remobjects.com/t/trosynapsehttpchannel-and-unable-to-connect-to-remote-server/13295/2 "2017-06-08T09:13:13Z")

</div>

another pc may require proxy.  
WinInet channel can handle this automatically, but Synapse channel can’t.

---

<div class="post-metadata">

### Author: ![Armindo\_DA\_SILVA](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/c6cbf5/32.png) [@Armindo\_DA\_SILVA](https://talk.remobjects.com/u/Armindo_DA_SILVA)
#### Post date: [June 8, 2017, 9:40am UTC](https://talk.remobjects.com/t/trosynapsehttpchannel-and-unable-to-connect-to-remote-server/13295/3 "2017-06-08T09:40:46Z")

</div>

Not sure that the server require proxy.  
Not that my web service client is running as Windows service.  
Is there a way to get more informations about the error instead of ‘Unable to connect to server’ ?

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [June 8, 2017, 9:48am UTC](https://talk.remobjects.com/t/trosynapsehttpchannel-and-unable-to-connect-to-remote-server/13295/4 "2017-06-08T09:48:58Z")

</div>

you can check ROSynapseHTTPChannel.http.`ResultCode` (or `ResultString`) for original error.

---

<div class="post-metadata">

### Author: ![Armindo\_DA\_SILVA](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/c6cbf5/32.png) [@Armindo\_DA\_SILVA](https://talk.remobjects.com/u/Armindo_DA_SILVA)
#### Post date: [June 8, 2017, 10:02am UTC](https://talk.remobjects.com/t/trosynapsehttpchannel-and-unable-to-connect-to-remote-server/13295/5 "2017-06-08T10:02:06Z")

</div>

> [@EvgenyK](#):
>
> ROSynapseHTTPChannel.http.ResultCode

I get 500 in this case, nothing on ResultString

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [June 8, 2017, 10:09am UTC](https://talk.remobjects.com/t/trosynapsehttpchannel-and-unable-to-connect-to-remote-server/13295/6 "2017-06-08T10:09:04Z")

</div>

these are default values:

```auto
function THTTPSend.HTTPMethod(const Method, URL: string): Boolean;
...
begin
  {initial values}
  Result := False;
  FResultCode := 500;
  FResultString := '';

```

look like, server result wasn’t received at all.

try to check state of socket:

- ROSynapseHTTPChannel1.http.Sock.LastError
- ROSynapseHTTPChannel1.http.Sock.LastErrorDesc

---

<div class="post-metadata">

### Author: ![Armindo\_DA\_SILVA](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/c6cbf5/32.png) [@Armindo\_DA\_SILVA](https://talk.remobjects.com/u/Armindo_DA_SILVA)
#### Post date: [June 8, 2017, 10:22am UTC](https://talk.remobjects.com/t/trosynapsehttpchannel-and-unable-to-connect-to-remote-server/13295/7 "2017-06-08T10:22:43Z")

</div>

This time I get this 🙂  
10091  
SSL/TLS support is not compiled!

But I didn’t say I want SSL or TLS…

---

<div class="post-metadata">

### Author: ![Armindo\_DA\_SILVA](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/c6cbf5/32.png) [@Armindo\_DA\_SILVA](https://talk.remobjects.com/u/Armindo_DA_SILVA)
#### Post date: [June 8, 2017, 12:21pm UTC](https://talk.remobjects.com/t/trosynapsehttpchannel-and-unable-to-connect-to-remote-server/13295/8 "2017-06-08T12:21:21Z")

</div>

Finally found how to solde the problem ::just adding on the same folder as the exe libeay32.dll and ssleay32.dll

Regards
