EDIT: I got it figured out. I think there should be a bit of a description change/edit for those who are like me. This won't work when trying to run audio/video via http://IP:Port. It WILL work however, when audio/video are ran through the same machine via http://localhost:Port - I was able to acheive this by running an instance of Caddy on the same machine as Sharkord and creating an entry like so:
:8080 {
reverse_proxy localhost:4991
}
Since I run my main instance of Caddy on a different server, for my reverse proxy, I had to create my entry as follows:
sharkord.subdomain.com {
reverse_proxy IP:8080
}
The IP would be the IP to the machine running Sharkord. So my edge reverse proxy will take request from the subdomain and forward them to the correct IP and port 8080. My machine running Sharkord will then receive the requests via port 8080, and forward them to the localhost on port 4991.
edit the file /etc/network/interfaces starting at the iface line below the "primary network interface" to look similar to the following:
im using enp0s5 as the example interface and made up IP's, but other interfaces will likely be named differently so dont change it to the example im using
iface enp0s5 inet static
address 10.10.10.10
netmask 255.255.255.0
gateway 10.10.10.1
you can add lines for dns-nameservers, but its better to just edit the resolv.conf file and add any dns servers there. not all configs look alike, but generally you can edit the resolv.conf like so nano /etc/resolv.conf and edit it to look like the example below
nameserver IPADDRESS
if you would like multiple dns servers the add each on a new line
nameserver IPADDRESS
nameserver IPADDRESS
check whether a specific port is listening
lsof -i:PORT
check if a port is open
nc -zv IP PORT
nc -zv 127.0.0.1 PORT -- to check locally
for PORT, multiple ports can be specified e.g.
nc -zv IP 80 443ornc -zv IP 80-82
dig google.com -- this will use all name servers added to resolv.conf one by onedig google.com@DNSIP -- this will use the dns server being specified via IP