I have a domain, static IP and many devices I'd like to access outside my house. How to route them?How can I route a domain to my box at home?how to use use local nameservers with public domain?Extend Wifi via Intermediate 3ghow can i forward requests to my own IP address to a local IP address in my network (possibly using named)?How to finish my DNS setup?How to configure Network for machines to have access to local wireless printers and devicesLocal Server with dynamic IP, DDNS and public Domain - Internal vs external traffic / routingSecond router in home network - how to setup properlyport Forward - Can RDP externally but can't PPTP VPN externallyGet DNSmasq to redirect local network requests to server on network
Why didn't Balak request Bilam to bless his own people?
Trivial non-dark twist in dark fantasy
Ethiopian Airlines tickets seem to always have the same price regardless of the proximity of the date?
Router restarts after big git push or big file upload
Why should fork() have been designed to return a file descriptor?
Quickest way to move a line in a text file before another line in a text file?
Does the Bracer of Flying Daggers really let a thief make 4 attacks per round?
A bicolour masyu
Grease/lubricate rubber stabilizer bar bushings?
Is art a form of communication?
What is the origin of "Wonder begets wisdom?"
Do I care if the housing market has gone up or down, if I'm moving from one house to another?
What is this light passenger prop airplane which crash landed in East Kalimantan, Borneo in 1983?
What does Windows' "Tuning up Application Start" do?
What is the difference between uniform velocity and constant velocity?
Conditional statement in a function for PS1 are not re-evalutated
Do pedestrians imitate automotive traffic?
Install suspension forks on non-suspension bike
P-adic functions on annuli
Can a creature sustain itself by eating its own severed body parts?
Can anyone help me to adjust the following asterisks?
How does the Gameboy's memory bank switching work?
Linearize or approximate a square root constraint
When will the last unambiguous evidence of mankind disappear?
I have a domain, static IP and many devices I'd like to access outside my house. How to route them?
How can I route a domain to my box at home?how to use use local nameservers with public domain?Extend Wifi via Intermediate 3ghow can i forward requests to my own IP address to a local IP address in my network (possibly using named)?How to finish my DNS setup?How to configure Network for machines to have access to local wireless printers and devicesLocal Server with dynamic IP, DDNS and public Domain - Internal vs external traffic / routingSecond router in home network - how to setup properlyport Forward - Can RDP externally but can't PPTP VPN externallyGet DNSmasq to redirect local network requests to server on network
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a domain (e.g. example.com), static IP (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 (ex. 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, 192.168.0.4:47.
I know that you cannot set the port on DNS server.
How I should overcome my problem?
networking router dns routing home-networking
New contributor
add a comment |
I have a domain (e.g. example.com), static IP (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 (ex. 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, 192.168.0.4:47.
I know that you cannot set the port on DNS server.
How I should overcome my problem?
networking router dns routing home-networking
New contributor
1
How many external IP addresses do you have? How many internal addresses share a non-web port (e.g. 47)?
– ctrl-alt-delor
7 hours ago
That 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
7 hours ago
1
@RonMaupin: "All"? I can't find that clause in my residential ISP's contract.
– grawity
1 hour ago
Make sure you use IPv6 if you have it available, because you wouldn't have this problem at all.
– Michael Hampton
10 mins ago
add a comment |
I have a domain (e.g. example.com), static IP (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 (ex. 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, 192.168.0.4:47.
I know that you cannot set the port on DNS server.
How I should overcome my problem?
networking router dns routing home-networking
New contributor
I have a domain (e.g. example.com), static IP (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 (ex. 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, 192.168.0.4:47.
I know that you cannot set the port on DNS server.
How I should overcome my problem?
networking router dns routing home-networking
networking router dns routing home-networking
New contributor
New contributor
edited 6 hours ago
ctrl-alt-delor
1,60412 silver badges26 bronze badges
1,60412 silver badges26 bronze badges
New contributor
asked 8 hours ago
Laurynas KerežiusLaurynas Kerežius
111 bronze badge
111 bronze badge
New contributor
New contributor
1
How many external IP addresses do you have? How many internal addresses share a non-web port (e.g. 47)?
– ctrl-alt-delor
7 hours ago
That 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
7 hours ago
1
@RonMaupin: "All"? I can't find that clause in my residential ISP's contract.
– grawity
1 hour ago
Make sure you use IPv6 if you have it available, because you wouldn't have this problem at all.
– Michael Hampton
10 mins ago
add a comment |
1
How many external IP addresses do you have? How many internal addresses share a non-web port (e.g. 47)?
– ctrl-alt-delor
7 hours ago
That 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
7 hours ago
1
@RonMaupin: "All"? I can't find that clause in my residential ISP's contract.
– grawity
1 hour ago
Make sure you use IPv6 if you have it available, because you wouldn't have this problem at all.
– Michael Hampton
10 mins ago
1
1
How many external IP addresses do you have? How many internal addresses share a non-web port (e.g. 47)?
– ctrl-alt-delor
7 hours ago
How many external IP addresses do you have? How many internal addresses share a non-web port (e.g. 47)?
– ctrl-alt-delor
7 hours ago
That 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
7 hours ago
That 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
7 hours ago
1
1
@RonMaupin: "All"? I can't find that clause in my residential ISP's contract.
– grawity
1 hour ago
@RonMaupin: "All"? I can't find that clause in my residential ISP's contract.
– grawity
1 hour ago
Make sure you use IPv6 if you have it available, because you wouldn't have this problem at all.
– Michael Hampton
10 mins ago
Make sure you use IPv6 if you have it available, because you wouldn't have this problem at all.
– Michael Hampton
10 mins ago
add a comment |
4 Answers
4
active
oldest
votes
You can have one public facing server running nginx reverse proxy that redirects traffic based on subdomain to the correct server.
nginx configuration on your "main" server:
server
server_name device1.example.com;
location /
proxy_pass http://192.168.0.1:80;
server
server_name device2.example.com;
location /
proxy_pass http://192.168.0.2:80;
server
server_name device3.example.com;
location /
proxy_pass http://192.168.0.3:80;
New contributor
add a comment |
If you have only one external IP address, then:
The first thing is to differentiate my port, you seem to have done this.
Next for all the port 80s, you can use nginx as a reverse proxy to route traffic to the various places. You can tell it exactly what you asked for e.g. route http://device1.example.com
to 192.0.0.1:80
etc. An alternative is to route http://example.com/device1
to 192.0.0.1:80
.
To do the first way see virtual hosts, in the nginx manual.
You will also have to point all of the names to the external IP address, if using the virtual host method. Or just the base domain, if using the directory method.
add a comment |
You'll need to use alternate ports for everything except one of them. For example, 212.5.5.5:80 would forward to 192.168.0.1:80, but then 212.5.5.5:81 would forward to 192.168.0.2:80, and 212.5.5.5:82 would forward to 192.168.0.3:80, and so on. This should be configurable on most modern NAT devices.
Another way, if you're willing to use IPv6, is just turn on IPv6 pass-through on your NAT device or router. That basically exposes every IPv6 address on your LAN to the public internet, letting you access them directly from the outside. As you might imagine, there is some risk associated with this. It's up to you to decide if that risk is tolerable.
add a comment |
If your DNS server is running on your network, you could configure your DNS server and add records for each subdomain to point to an internal IP.
If this is not the case, then you can use a router to forward ports like so:
212.5.5.5:444 forward to 192.168.0.2:80
and
212.5.5.5:333 forward to 192.168.0.3:80
Then to access 192.168.0.2:80
from outside you connect to 212.5.5.5:444
or domain.com:444
and to access 192.168.0.3:80
from outside you connect to 212.5.5.5:333
or domain.com:333
and so on...
New contributor
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "3"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Laurynas Kerežius is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1462449%2fi-have-a-domain-static-ip-and-many-devices-id-like-to-access-outside-my-house%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can have one public facing server running nginx reverse proxy that redirects traffic based on subdomain to the correct server.
nginx configuration on your "main" server:
server
server_name device1.example.com;
location /
proxy_pass http://192.168.0.1:80;
server
server_name device2.example.com;
location /
proxy_pass http://192.168.0.2:80;
server
server_name device3.example.com;
location /
proxy_pass http://192.168.0.3:80;
New contributor
add a comment |
You can have one public facing server running nginx reverse proxy that redirects traffic based on subdomain to the correct server.
nginx configuration on your "main" server:
server
server_name device1.example.com;
location /
proxy_pass http://192.168.0.1:80;
server
server_name device2.example.com;
location /
proxy_pass http://192.168.0.2:80;
server
server_name device3.example.com;
location /
proxy_pass http://192.168.0.3:80;
New contributor
add a comment |
You can have one public facing server running nginx reverse proxy that redirects traffic based on subdomain to the correct server.
nginx configuration on your "main" server:
server
server_name device1.example.com;
location /
proxy_pass http://192.168.0.1:80;
server
server_name device2.example.com;
location /
proxy_pass http://192.168.0.2:80;
server
server_name device3.example.com;
location /
proxy_pass http://192.168.0.3:80;
New contributor
You can have one public facing server running nginx reverse proxy that redirects traffic based on subdomain to the correct server.
nginx configuration on your "main" server:
server
server_name device1.example.com;
location /
proxy_pass http://192.168.0.1:80;
server
server_name device2.example.com;
location /
proxy_pass http://192.168.0.2:80;
server
server_name device3.example.com;
location /
proxy_pass http://192.168.0.3:80;
New contributor
New contributor
answered 5 hours ago
DanielDaniel
515 bronze badges
515 bronze badges
New contributor
New contributor
add a comment |
add a comment |
If you have only one external IP address, then:
The first thing is to differentiate my port, you seem to have done this.
Next for all the port 80s, you can use nginx as a reverse proxy to route traffic to the various places. You can tell it exactly what you asked for e.g. route http://device1.example.com
to 192.0.0.1:80
etc. An alternative is to route http://example.com/device1
to 192.0.0.1:80
.
To do the first way see virtual hosts, in the nginx manual.
You will also have to point all of the names to the external IP address, if using the virtual host method. Or just the base domain, if using the directory method.
add a comment |
If you have only one external IP address, then:
The first thing is to differentiate my port, you seem to have done this.
Next for all the port 80s, you can use nginx as a reverse proxy to route traffic to the various places. You can tell it exactly what you asked for e.g. route http://device1.example.com
to 192.0.0.1:80
etc. An alternative is to route http://example.com/device1
to 192.0.0.1:80
.
To do the first way see virtual hosts, in the nginx manual.
You will also have to point all of the names to the external IP address, if using the virtual host method. Or just the base domain, if using the directory method.
add a comment |
If you have only one external IP address, then:
The first thing is to differentiate my port, you seem to have done this.
Next for all the port 80s, you can use nginx as a reverse proxy to route traffic to the various places. You can tell it exactly what you asked for e.g. route http://device1.example.com
to 192.0.0.1:80
etc. An alternative is to route http://example.com/device1
to 192.0.0.1:80
.
To do the first way see virtual hosts, in the nginx manual.
You will also have to point all of the names to the external IP address, if using the virtual host method. Or just the base domain, if using the directory method.
If you have only one external IP address, then:
The first thing is to differentiate my port, you seem to have done this.
Next for all the port 80s, you can use nginx as a reverse proxy to route traffic to the various places. You can tell it exactly what you asked for e.g. route http://device1.example.com
to 192.0.0.1:80
etc. An alternative is to route http://example.com/device1
to 192.0.0.1:80
.
To do the first way see virtual hosts, in the nginx manual.
You will also have to point all of the names to the external IP address, if using the virtual host method. Or just the base domain, if using the directory method.
answered 7 hours ago
ctrl-alt-delorctrl-alt-delor
1,60412 silver badges26 bronze badges
1,60412 silver badges26 bronze badges
add a comment |
add a comment |
You'll need to use alternate ports for everything except one of them. For example, 212.5.5.5:80 would forward to 192.168.0.1:80, but then 212.5.5.5:81 would forward to 192.168.0.2:80, and 212.5.5.5:82 would forward to 192.168.0.3:80, and so on. This should be configurable on most modern NAT devices.
Another way, if you're willing to use IPv6, is just turn on IPv6 pass-through on your NAT device or router. That basically exposes every IPv6 address on your LAN to the public internet, letting you access them directly from the outside. As you might imagine, there is some risk associated with this. It's up to you to decide if that risk is tolerable.
add a comment |
You'll need to use alternate ports for everything except one of them. For example, 212.5.5.5:80 would forward to 192.168.0.1:80, but then 212.5.5.5:81 would forward to 192.168.0.2:80, and 212.5.5.5:82 would forward to 192.168.0.3:80, and so on. This should be configurable on most modern NAT devices.
Another way, if you're willing to use IPv6, is just turn on IPv6 pass-through on your NAT device or router. That basically exposes every IPv6 address on your LAN to the public internet, letting you access them directly from the outside. As you might imagine, there is some risk associated with this. It's up to you to decide if that risk is tolerable.
add a comment |
You'll need to use alternate ports for everything except one of them. For example, 212.5.5.5:80 would forward to 192.168.0.1:80, but then 212.5.5.5:81 would forward to 192.168.0.2:80, and 212.5.5.5:82 would forward to 192.168.0.3:80, and so on. This should be configurable on most modern NAT devices.
Another way, if you're willing to use IPv6, is just turn on IPv6 pass-through on your NAT device or router. That basically exposes every IPv6 address on your LAN to the public internet, letting you access them directly from the outside. As you might imagine, there is some risk associated with this. It's up to you to decide if that risk is tolerable.
You'll need to use alternate ports for everything except one of them. For example, 212.5.5.5:80 would forward to 192.168.0.1:80, but then 212.5.5.5:81 would forward to 192.168.0.2:80, and 212.5.5.5:82 would forward to 192.168.0.3:80, and so on. This should be configurable on most modern NAT devices.
Another way, if you're willing to use IPv6, is just turn on IPv6 pass-through on your NAT device or router. That basically exposes every IPv6 address on your LAN to the public internet, letting you access them directly from the outside. As you might imagine, there is some risk associated with this. It's up to you to decide if that risk is tolerable.
answered 7 hours ago
Charles BurgeCharles Burge
1,6651 gold badge4 silver badges13 bronze badges
1,6651 gold badge4 silver badges13 bronze badges
add a comment |
add a comment |
If your DNS server is running on your network, you could configure your DNS server and add records for each subdomain to point to an internal IP.
If this is not the case, then you can use a router to forward ports like so:
212.5.5.5:444 forward to 192.168.0.2:80
and
212.5.5.5:333 forward to 192.168.0.3:80
Then to access 192.168.0.2:80
from outside you connect to 212.5.5.5:444
or domain.com:444
and to access 192.168.0.3:80
from outside you connect to 212.5.5.5:333
or domain.com:333
and so on...
New contributor
add a comment |
If your DNS server is running on your network, you could configure your DNS server and add records for each subdomain to point to an internal IP.
If this is not the case, then you can use a router to forward ports like so:
212.5.5.5:444 forward to 192.168.0.2:80
and
212.5.5.5:333 forward to 192.168.0.3:80
Then to access 192.168.0.2:80
from outside you connect to 212.5.5.5:444
or domain.com:444
and to access 192.168.0.3:80
from outside you connect to 212.5.5.5:333
or domain.com:333
and so on...
New contributor
add a comment |
If your DNS server is running on your network, you could configure your DNS server and add records for each subdomain to point to an internal IP.
If this is not the case, then you can use a router to forward ports like so:
212.5.5.5:444 forward to 192.168.0.2:80
and
212.5.5.5:333 forward to 192.168.0.3:80
Then to access 192.168.0.2:80
from outside you connect to 212.5.5.5:444
or domain.com:444
and to access 192.168.0.3:80
from outside you connect to 212.5.5.5:333
or domain.com:333
and so on...
New contributor
If your DNS server is running on your network, you could configure your DNS server and add records for each subdomain to point to an internal IP.
If this is not the case, then you can use a router to forward ports like so:
212.5.5.5:444 forward to 192.168.0.2:80
and
212.5.5.5:333 forward to 192.168.0.3:80
Then to access 192.168.0.2:80
from outside you connect to 212.5.5.5:444
or domain.com:444
and to access 192.168.0.3:80
from outside you connect to 212.5.5.5:333
or domain.com:333
and so on...
New contributor
edited 7 hours ago
New contributor
answered 8 hours ago
RaffaRaffa
293 bronze badges
293 bronze badges
New contributor
New contributor
add a comment |
add a comment |
Laurynas Kerežius is a new contributor. Be nice, and check out our Code of Conduct.
Laurynas Kerežius is a new contributor. Be nice, and check out our Code of Conduct.
Laurynas Kerežius is a new contributor. Be nice, and check out our Code of Conduct.
Laurynas Kerežius is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1462449%2fi-have-a-domain-static-ip-and-many-devices-id-like-to-access-outside-my-house%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
How many external IP addresses do you have? How many internal addresses share a non-web port (e.g. 47)?
– ctrl-alt-delor
7 hours ago
That 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
7 hours ago
1
@RonMaupin: "All"? I can't find that clause in my residential ISP's contract.
– grawity
1 hour ago
Make sure you use IPv6 if you have it available, because you wouldn't have this problem at all.
– Michael Hampton
10 mins ago