# Bad Request. This combination of host and port requires TLS

**URL:** <https://openvidu.discourse.group/t/bad-request-this-combination-of-host-and-port-requires-tls/2528>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [January 4, 2021, 6:15pm UTC](https://openvidu.discourse.group/t/bad-request-this-combination-of-host-and-port-requires-tls/2528 "2021-01-04T18:15:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajaynegi](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@ajaynegi](https://openvidu.discourse.group/u/ajaynegi)\
**Post date:** [January 4, 2021, 6:15pm UTC](https://openvidu.discourse.group/t/bad-request-this-combination-of-host-and-port-requires-tls/2528/1 "2021-01-04T18:15:00Z")

</div>

While I am deploying the app on heroku , I am getting bad request.  
This combination of host and port requires TLS. I am not able to get whats the issue because its working fine in my localhost.This is the log I am getting:-

2021-01-05T05:44:46.260085+00:00 heroku[router]: at=info method=GET path="/" [host=mount-call.herokuapp.com](http://host=mount-call.herokuapp.com) request\_id=9f59548a-24fd-4b3f-9b66-d4c3c3c863e8 fwd=“103.49.155.195” dyno=web.1 connect=0ms service=14ms status=400 bytes=143 protocol=https

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [January 7, 2021, 11:40am UTC](https://openvidu.discourse.group/t/bad-request-this-combination-of-host-and-port-requires-tls/2528/2 "2021-01-07T11:40:18Z")

</div>

What instructions did you use to deploy?

---

<div class="post-metadata">

**Author:** ![ajaynegi](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@ajaynegi](https://openvidu.discourse.group/u/ajaynegi)\
**Post date:** [January 7, 2021, 1:35pm UTC](https://openvidu.discourse.group/t/bad-request-this-combination-of-host-and-port-requires-tls/2528/3 "2021-01-07T13:35:10Z")

</div>

Thank you for your reply sir. Now I have deployed my app using AWS and it is working but new problem has arised that only me and my friend can only join that meeting, if anyone else is trying to join…this error is coming up  
WebSocket connection to ‘wss://3.128.109.91/openvidu’ failed: Error in connection establishment: net::ERR\_CERT\_AUTHORITY\_INVALID.  
they are able to see login and join page, but they are not able to join session only…in that page they are getting the above error.  
Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [January 7, 2021, 3:13pm UTC](https://openvidu.discourse.group/t/bad-request-this-combination-of-host-and-port-requires-tls/2528/4 "2021-01-07T15:13:39Z")

</div>

If you’ve deployed with AWS and you did not configured a domain name, you should use the domain name assigned to your instance by AWS. It is in the Cloudformation

 ![image](https://global.discourse-cdn.com/free1/uploads/openvidu/original/2X/0/0c5ae11ac20d2f2644aefe10a7ce18f5c1290298.png)

Also, as you’re not using a FQDN your users should accept the certificate, if not it will not work. I recommend you to set up a domain name and use letsencrypt configuration  
[https://docs.openvidu.io/en/2.16.0/deployment/deploying-aws/#2-lets-encrypt-certificate](https://docs.openvidu.io/en/2.16.0/deployment/deploying-aws/#2-lets-encrypt-certificate)  
In this way you can use valid certificates. You just need a domain name

Regards,  
Carlos

---

<div class="post-metadata">

**Author:** ![vipin\_mishra](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/vipin_mishra/32/32_2.png) [@vipin\_mishra](https://openvidu.discourse.group/u/vipin_mishra)\
**Post date:** [January 7, 2021, 6:56pm UTC](https://openvidu.discourse.group/t/bad-request-this-combination-of-host-and-port-requires-tls/2528/5 "2021-01-07T18:56:29Z")

</div>

Please follow the steps described by @cruizba properly and use domain or subdomain name instead IP address  
Thanks  
Vipin
