# Https internet access from alternate port?

**URL:** <https://community.openhab.org/t/https-internet-access-from-alternate-port/56515>\
**Category:** Runtime\
**Tags:** port, https, internet\
**Created:** [November 12, 2018, 9:30pm UTC](https://community.openhab.org/t/https-internet-access-from-alternate-port/56515 "2018-11-12T21:30:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mshelby](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/4491bb/32.png) [@mshelby](https://community.openhab.org/u/mshelby)\
**Post date:** [November 12, 2018, 9:30pm UTC](https://community.openhab.org/t/https-internet-access-from-alternate-port/56515/1 "2018-11-12T21:30:08Z")

</div>

I have a home server. I already use ports 8080 & 8443 for my server’s start page.  
I also have my server setup to be accessed from the internet & to redirect to https when anyone types in the domain name.

So for example if my server internet address ([http://www.mysampleserver.com](http://www.mysampleserver.com)) using port 8080 automatically redirects to [https://www.mysampleserver.com](https://www.mysampleserver.com) using port 8443.

Using info found elsewhere in the forums I edited /etc/default/openhab2 and enabled ports 8081 & 8444.

I also added a VirtualHost \*:81, and \*:444 to my /etc/apache2/sites-enabled/ file.

I restarted apache2 server & openhab2 but I cannot access my OpenHAB2 site using:  
[http://www.mysampleserver.com:8081](http://www.mysampleserver.com:8081)  
[https://www.mysampleserver.com:8444](https://www.mysampleserver.com:8444)

I also can’t access the OpenHAB2 site using ports 8080 or 8443. I know this is because I already have an application using this port to serve my server’s index page.

I can only access OpenHAB2 using local ip (192.168.0.100:8081)

So…

My desired configuration can’t be that out of the ordinary? I understand the security concerns regarding accessing OpenHAB2 over the internet, but I want to do it.

So, I need to access OpenHAB2 over the internet using an alternative port. I’d especially like to access it via https.

I just can’t seem to make this config work. Has anyone gotten this to work? I have other apps on my server so I don’t want to use OpenHAB2 as a stand alone server like OpenHABian. I just want to install and use OpenHAB2 as I would any other program on my server.

---

<div class="post-metadata">

**Author:** ![Thedannymullen](https://community.openhab.org/user_avatar/community.openhab.org/thedannymullen/32/73361_2.png) [@Thedannymullen](https://community.openhab.org/u/Thedannymullen)\
**Post date:** [November 13, 2018, 2:49am UTC](https://community.openhab.org/t/https-internet-access-from-alternate-port/56515/2 "2018-11-13T02:49:32Z")

</div>

I would ask a why question but I won’t. From what I see here this is an Apache question as it appears that is what you are using it as your reverse proxy. If ip:8081 works then seems like openHAB is doing its job.

The why question pertained to why access from the internet like this. There would by default be no security.

---

<div class="post-metadata">

**Author:** ![vzorglub](https://community.openhab.org/user_avatar/community.openhab.org/vzorglub/32/17166_2.png) [@vzorglub](https://community.openhab.org/u/vzorglub)\
**Post date:** [November 13, 2018, 8:16am UTC](https://community.openhab.org/t/https-internet-access-from-alternate-port/56515/3 "2018-11-13T08:16:29Z")

</div>

> [@mshelby](#):
>
> I understand the security concerns regarding accessing OpenHAB2 over the internet

I am not sure you do.  
The open port will be found bit a scanning bot within minutes and attacked shortly after.  
There is NO security on that port.  
Good luck
