32
15
I have a domain (e.g. example.com
), static IP address (e.g. 212.5.5.5
) and local devices at 192.168.0.1:80
, 192.168.0.2:80
, 192.168.0.3:80
, 192.168.0.4:80
, 192.168.0.4:47
(this one is not a website).
How do I access these devices using subdomains (for example, device1.example.com
, device2.example.com
, etc.)?
Currently I was only able to get example.com:80
and example.com:47
working, which point to 192.168.0.4:80
and 192.168.0.4:47
.
I know that you cannot set the port on DNS server.
How I should overcome my problem?
1How many external IP addresses do you have? How many internal addresses share a non-web port (e.g. 47)? – ctrl-alt-delor – 2019-07-21T22:56:09.043
4That is also a violation of your residential service contract (they all have a clause prohibiting services to the Internet). Your residential ISP may shut that ability down at any time, or it may simply cancel your service if it finds out. Get a business account, then you will not have the problem. – Ron Maupin – 2019-07-21T23:14:39.547
42@RonMaupin: "All"? I can't find that clause in my residential ISP's contract. – user1686 – 2019-07-22T05:00:45.267
5Make sure you use IPv6 if you have it available, because you wouldn't have this problem at all. – Michael Hampton – 2019-07-22T06:26:01.563
19@RonMaupin, I live in Lithuania, you do whatever you want to with your external IP. – Laurynas Kerežius – 2019-07-22T07:50:01.710
@LaurynasKerežius Out of curiosity, what is the name of your ISP? You might have missed the clause in a different document. – Nzall – 2019-07-22T15:30:10.950
13@RonMaupin: you don't know that. There are plenty of smaller ISPs that don't care about home users running services. – whatsisname – 2019-07-22T16:23:34.087
1@whatsisname, it is still in the residential contract. Every time someone told me that it wasn't, I have looked it up and it is there. It may be that it is not now enforced, but when a residential ISP converts to CGN, and it breaks running services to the Internet, people complain, but it is in the residential contract. – Ron Maupin – 2019-07-22T16:26:49.640
13@RonMaupin I've been running my home server for like 15 years? Changed 4 ISPs during that time. I've the contract just recently out of curiosity and my ISP lets me do whatever I want until I do some sort of fraud, spam, hosting gambling websites, anything that does not break the law and is not fraudulent is allowed. – Laurynas Kerežius – 2019-07-22T17:18:47.187
@ctrl-alt-delor I have 1 external address and 1 internal address which shares a non-web port. – Laurynas Kerežius – 2019-07-22T17:19:40.863
How can one thing share. Surely it takes 2 to share. – ctrl-alt-delor – 2019-07-22T21:10:37.930
12I guess this might be some US-centric perspective which @RonMaupin is sharing with us. It simply might not be globally applicable. – GrzegorzOledzki – 2019-07-23T10:50:06.840
7@GrzegorzOledzki never heard of this in the U.S. Why do all the ISP-provided routers allow port forwarding then? – multithr3at3d – 2019-07-23T11:26:18.407
2@multithr3at3d Idk, It'd be funny if you couldn't host your own Minecraft server :D – Laurynas Kerežius – 2019-07-23T17:42:19.613
@ctrl-alt-delor Well this device is a house recuperator which has: 1. web interface on port 80 and 2. App communication protocol on port 47. – Laurynas Kerežius – 2019-07-23T17:54:38.270
3@ Ron Maupin most countries with consumer protection laws would have a problem with this. Internet is internet, you are paying for a connection. "Fair Use" can apply, but not prohibition. It fails the fitness for purpose test. Amazon would certainly disagree. – mckenzm – 2019-07-24T01:15:36.017
@mckenzm You are paying to connect to their service, through which you access the internet. They can put any (legal) restrictions on your use of their systems that they want in their agreement with you; you're free to take your business elsewhere. My (US) experience agrees with Ron - every ISP I've used has had clauses prohibiting hosting services on residential connections. Except a few who blocked port 80, I've never known it to really be enforced, and in some ways I don't even know how they'd differentiate hosting a server from many types of traffic (P2P sharting, gaming, active FTP, etc) – A C – 2019-07-24T02:02:02.063
1@AC, when I was younger Charter actually contacted my parents because I was running a personal web server and said it had to be removed or service may be terminated. Had next to no traffic so they must have just found it through monitoring or something. Now with comcast, they haven't bothered me about it despite the same restriction. – kicken – 2019-07-24T08:50:14.800
1@AC Most ISPs I know only block port 25 to block email spambots. You could forward any other port, thus run a webserver, Minecraft (or other game) server, ... from a residential line. You don't get any SLAs with that and might reach your bandwith limits or be slapped with a Fair Use limitation (lowering your connection speed during peak hours) if you've used to much bandwith. But my experience is also limited to an EU country – BlueCacti – 2019-07-24T12:28:41.610