# Only can connect to videosdk-web-sample via "http://localhost:3000"

**URL:** <https://devforum.zoom.us/t/only-can-connect-to-videosdk-web-sample-via-http-localhost-3000/114093>\
**Category:** Video SDK\
**Created:** [July 21, 2024, 8:30pm UTC](https://devforum.zoom.us/t/only-can-connect-to-videosdk-web-sample-via-http-localhost-3000/114093 "2024-07-21T20:30:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![john15](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/john15/32/50617_2.png) [@john15](https://devforum.zoom.us/u/john15)\
**Post date:** [July 21, 2024, 8:30pm UTC](https://devforum.zoom.us/t/only-can-connect-to-videosdk-web-sample-via-http-localhost-3000/114093/1 "2024-07-21T20:30:40Z")

</div>

**Video SDK Type and Version**  
Video SDK Version: 1.11.10  
videosdk-web-sample Version: Recent git clone

**Description**  
Running the videosdk-web-sample things appear to work when I access the site with localhost in the url. However, if I try to access it with 192.168.1.1 the site generates a runtime error.

**Error**

Uncaught runtime errors:  
ERROR  
right-hand side of ‘in’ should be an object, got undefined  
get isSupportSendScreenSharing@[snip]/static/js/bundle.js:30541:35  
NR@[snip]/static/js/bundle.js:49200:9  
checkSystemRequirements@[snip]/static/js/bundle.js:61386:14  
value@[snip]/static/js/bundle.js:62772:37  
init@[snip]/static/js/bundle.js:3789:22  
./src/App.tsx/App/\<@http://[snip]/static/js/bundle.js:3811:5  
commitHookEffectListMount@[snip]/static/js/bundle.js:182422:30  
commitPassiveMountOnFiber@[snip]/static/js/bundle.js:183915:42  
commitPassiveMountEffects\_complete@[snip]/static/js/bundle.js:183887:38  
commitPassiveMountEffects\_begin@[snip]/static/js/bundle.js:183877:45  
commitPassiveMountEffects@[snip]/static/js/bundle.js:183867:38  
flushPassiveEffectsImpl@[snip]/static/js/bundle.js:185750:32  
flushPassiveEffects@[snip]/static/js/bundle.js:185703:18  
./node\_modules/react-dom/cjs/react-dom.development.js/commitRootImpl/\<@http://[snip]/static/js/bundle.js:185518:13  
workLoop@[snip]/static/js/bundle.js:196590:46  
flushWork@[snip]/static/js/bundle.js:196568:18  
performWorkUntilDeadline@[snip]/static/js/bundle.js:196805:25

That error repeats 2 more times.

**How To Reproduce**  
_Steps to reproduce the behavior including:_

- The steps in the sample README.md were followed.

I had to alter all urls as the forum would not let me include them.

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [July 22, 2024, 1:24am UTC](https://devforum.zoom.us/t/only-can-connect-to-videosdk-web-sample-via-http-localhost-3000/114093/2 "2024-07-22T01:24:22Z")

</div>

Hey @john15

Thanks for your feedback.

In order to use audio/video on web, a secure context is required.

> **[Secure contexts - Security on the web | MDN](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts)**
>
> A secure context is a Window or Worker for which certain minimum standards of authentication and confidentiality are met. Many Web APIs and features are accessible only in a secure context. The primary goal of secure contexts is to prevent MITM...

If you need to access it via IP address, please make sure it uses the HTTPS protocol. You can generate a self-signed certificate if it’s just for testing purposes.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![john15](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/john15/32/50617_2.png) [@john15](https://devforum.zoom.us/u/john15)\
**Post date:** [July 22, 2024, 1:47am UTC](https://devforum.zoom.us/t/only-can-connect-to-videosdk-web-sample-via-http-localhost-3000/114093/3 "2024-07-22T01:47:39Z")

</div>

Thanks for that information!
