# Zoom API works on local pc, shared hosting but NOT on dedicated server

**URL:** <https://devforum.zoom.us/t/zoom-api-works-on-local-pc-shared-hosting-but-not-on-dedicated-server/59886>\
**Category:** API and Webhooks\
**Created:** [November 7, 2021, 9:17am UTC](https://devforum.zoom.us/t/zoom-api-works-on-local-pc-shared-hosting-but-not-on-dedicated-server/59886 "2021-11-07T09:17:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![energytelia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/energytelia/32/28113_2.png) [@energytelia](https://devforum.zoom.us/u/energytelia)\
**Post date:** [November 7, 2021, 9:17am UTC](https://devforum.zoom.us/t/zoom-api-works-on-local-pc-shared-hosting-but-not-on-dedicated-server/59886/1 "2021-11-07T09:17:50Z")

</div>

Zoom API works fine on local PC (C#,Visual Studio 2019). It also worked well on shared hosting.

Since transferred website on dedicated server it does not work…but rest of the website works fine.

Any idea about the reasons that may cause this?

---

<div class="post-metadata">

**Author:** ![energytelia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/energytelia/32/28113_2.png) [@energytelia](https://devforum.zoom.us/u/energytelia)\
**Post date:** [November 8, 2021, 5:55pm UTC](https://devforum.zoom.us/t/zoom-api-works-on-local-pc-shared-hosting-but-not-on-dedicated-server/59886/3 "2021-11-08T17:55:24Z")

</div>

It works now. Added the following code and now it works:

**client.ConfigureWebRequest((r) =\>**  
\*\* {\*\*  
\*\* r.ServicePoint.Expect100Continue = false;\*\*  
\*\* r.KeepAlive = true;\*\*  
\*\* });\*\*  
\*\* System.Net.ServicePointManager.ServerCertificateValidationCallback = (senderX, certificate, chain, sslPolicyErrors) =\> { return true; };\*\*  
\*\* System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;\*\*

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [November 9, 2021, 11:08am UTC](https://devforum.zoom.us/t/zoom-api-works-on-local-pc-shared-hosting-but-not-on-dedicated-server/59886/4 "2021-11-09T11:08:36Z")

</div>

Glad you were able to resolve it! 🙂

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [November 9, 2021, 11:08am UTC](https://devforum.zoom.us/t/zoom-api-works-on-local-pc-shared-hosting-but-not-on-dedicated-server/59886/5 "2021-11-09T11:08:39Z")

</div>

Closed on November 9, 2021, 11:08am UTC


