# Using remote.it as websocket gateway

**URL:** <https://forum.remote.it/t/using-remote-it-as-websocket-gateway/99>\
**Category:** Uncategorized\
**Created:** [November 9, 2019, 4:51pm UTC](https://forum.remote.it/t/using-remote-it-as-websocket-gateway/99 "2019-11-09T16:51:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ric287](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@ric287](https://forum.remote.it/u/ric287)\
**Post date:** [November 9, 2019, 4:51pm UTC](https://forum.remote.it/t/using-remote-it-as-websocket-gateway/99/1 "2019-11-09T16:51:24Z")

</div>

Hi ,  
I am absolutely new to the community and the product, although i feel this is the right place i can take help from.

I have seen tutorials ,where ports of raspberry was controlled remotely using this platform,can we do the same with websockets?  
Suppose, i have a web socket server hosted on my raspberry pi 3b+, how can i use remote.it to generate a publc ws /wss url to be used over anywhere in the internet?

Regards,  
Shariq

---

<div class="post-metadata">

**Author:** ![gary](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@gary](https://forum.remote.it/u/gary)\
**Post date:** [November 11, 2019, 5:41am UTC](https://forum.remote.it/t/using-remote-it-as-websocket-gateway/99/2 "2019-11-11T05:41:58Z")

</div>

Hi Shariq,

Please review our connection API as described here.

[https://docs.remote.it/api-reference/overview](https://docs.remote.it/api-reference/overview)

This gives you a proxy connection URL which you can use from your location. If you disable IP restriction by setting the hostip parameter to “0.0.0.0” in the /device/connect call, the returned proxy URL and port can be shared with other people for connection, but this connection times out after several hours, or as soon as you run the /device/connect/stop endpoint.

You may also wish to investigate making peer to peer connections:

> **[Using connectd in P2P initiator mode](https://docs.remote.it/guides/using-connectd-in-p2p-initiator-mode)**
>
> How to use the connectd daemon on your computer to create a peer-to-peer (P2P) connection.

although peer to peer connections are not shareable URLs, they are persistent localhost:port addresses that you can use from the client on which the Desktop is installed.

See:  
[https://docs.remote.it/guides/using-the-desktop-app](https://docs.remote.it/guides/using-the-desktop-app)
