# Connect to a RO Server running the code in a DLL

**URL:** https://talk.remobjects.com/t/connect-to-a-ro-server-running-the-code-in-a-dll/30025
**Category:** Remoting SDK
**Tags:** delphi
**Created:** [July 22, 2024, 10:06pm UTC](https://talk.remobjects.com/t/connect-to-a-ro-server-running-the-code-in-a-dll/30025 "2024-07-22T22:06:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Marcos\_Cunha\_Lima](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/e47c2d/32.png) [@Marcos\_Cunha\_Lima](https://talk.remobjects.com/u/Marcos_Cunha_Lima)
#### Post date: [July 22, 2024, 10:06pm UTC](https://talk.remobjects.com/t/connect-to-a-ro-server-running-the-code-in-a-dll/30025/1 "2024-07-22T22:06:36Z")

</div>

Hi

We have a Delphi client in which we created all components at runtime in order to connect to a remote server.  
It works very well.

Now, we need to connect to a server from a DLL, eg, the client will load a DLL and runs a function there. The DLL’s function should connect to server, run a function there and return a string or something else simple to host.

We didn’t code anything yet and are wondering if there is something that we should be aware of beforehand.  
Our plan would be to copy the code that already put together the connection in the client to the DLL and try to run something simple just to make the connection and return a string from the server to the DLL and to the client.

---

<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: [July 23, 2024, 6:22am UTC](https://talk.remobjects.com/t/connect-to-a-ro-server-running-the-code-in-a-dll/30025/2 "2024-07-23T06:22:56Z")

</div>

Hi,

I can suggest to review [Proxy Server sample (Delphi)](https://docs.remotingsdk.com/Samples/Delphi/ProxyServer/) .

it is almost the same as you want. You can put your proxy server into dll.

---

<div class="post-metadata">

### Author: ![Marcos\_Cunha\_Lima](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/e47c2d/32.png) [@Marcos\_Cunha\_Lima](https://talk.remobjects.com/u/Marcos_Cunha_Lima)
#### Post date: [July 23, 2024, 12:56pm UTC](https://talk.remobjects.com/t/connect-to-a-ro-server-running-the-code-in-a-dll/30025/3 "2024-07-23T12:56:28Z")

</div>

Thank you, I’ll give it a try.
