How to Access your Raspberry Pi Website over the Internet (with port forwarding)

  Рет қаралды 70,422

Tony Teaches Tech

Tony Teaches Tech

Күн бұрын

Пікірлер: 75
@sentineluk7
@sentineluk7 3 жыл бұрын
A lot of routers will let you specify an EXTERNAL port to forward to an internal port number, so you can forward external requests from, say port 8080, to internal port 80. Alternatively you could change the port of your internal website to a different port number (8080 is a common alternative for websites if port 80 is blocked or in use). It depends on what kind of blocks your ISP is using, if they are using "Deep Packet Inspection" then this checks what kind of traffic is flowing in and out, no matter what port has been specified - this might be why you had the problem, Cox might be using this kind of scanning on your connection, there's not an easy way around this, I'm afraid.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Spot on John! Thanks for taking the time to write this up.
@sirthugbert5654
@sirthugbert5654 Жыл бұрын
This was a super helpful video! I never considered my ISP was blocking certain ports, thank you. ALso, love the Maryland gear.
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Glad it was helpful!
@DomBurgess
@DomBurgess 11 ай бұрын
Worked for me! Thankyou!!
@disfeed
@disfeed 3 жыл бұрын
FINALLY!!! I was waiting for one of these videos made specifically from you! I was struggling getting my website online! 👏👏
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
I'm so glad!
@talinross
@talinross 3 жыл бұрын
Thank for all the help
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Sure thing :)
@DavidCastillaGil
@DavidCastillaGil 2 жыл бұрын
If you think about it it's a good thing that you get port 80 and 443 blocked by default. Home routers are not meant or secure enough to host public services to the Internet, given there are so many bad actors out there. So they instead force you to use a different non-standard port to at least protect you from most bots scanning your device and exploiting vulnerabilities in the common ports. As another comment said below, you should just use a different free port, 8080 instead of 80, or 8443 instead of 443. That's quite the standard, but if you're hosting for yourself you might as well use the port you want. If you need an easier access without IP and port, you have to consider a DDNS service because your IP will probably change.
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
I agree with you David
@thebusinesscentre
@thebusinesscentre Жыл бұрын
Tony is a legend 🥰
@ravi-gadhiya
@ravi-gadhiya 3 жыл бұрын
Thanks, Tony i learn new and cool things from your videos, keep it up 👍
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
You're welcome Ravi. Always appreciate you watching :)
@rodneymoore465
@rodneymoore465 2 жыл бұрын
now i cant even connect to wp-admin after changing ip how to fix it in the web files plz help
@TheBoBuilder
@TheBoBuilder 2 жыл бұрын
Is there a way to use the pi with a domain?
@vladimirpotapov7050
@vladimirpotapov7050 Жыл бұрын
Thank you a lot, Tony!
@MrLRankin2
@MrLRankin2 3 ай бұрын
That was great anyway. You would need a business account if you want port 80 unblocked nowadays. Without a business account, the providers that block port 80, claim that you would be violating your terms of contract. However, I have heard that Verizon Fios does not block port 80.
@gravestoner2488
@gravestoner2488 2 жыл бұрын
This is a great video, even if you didnt get to complete it. That has me getting prepared. Actually reminded me of something i read in the past about this... i think my provider has a package that does allow port forwarding
@blackscreensounds7986
@blackscreensounds7986 2 жыл бұрын
HI Tony, thanks for the great video. Unfortunately as soon as I change my WP config to use the external IP, I cannot reach the dashboard anymore (from both internal AND external connections). This means I can't go back on the settings and need to reinstall WP on the Pi altogether
@vaz8926
@vaz8926 Жыл бұрын
nah u could edit the mariadb and then change the values for the settings there
@rufi4you
@rufi4you Ай бұрын
Great explanation, but what happens if the provider assigns me a different IP address.
@neilcoelho
@neilcoelho 10 ай бұрын
You can use cloudflare tunneling right?
@misirali437
@misirali437 2 жыл бұрын
Can I assign public ip in raspberry pi?
@henry1285
@henry1285 11 ай бұрын
Is this method bad over network security ?
@Konslufius
@Konslufius Жыл бұрын
How would this work with dual stack? Most of us don't even have a public ipv4 anymore
@akelan2817
@akelan2817 2 жыл бұрын
I have a samba share set up on my LAN, would it be possible to access my shared folder outside of my Network?
@tongshen4047
@tongshen4047 2 жыл бұрын
Can I forward port 443 only? I have installed ssl already
@jkw203
@jkw203 3 жыл бұрын
Why couldn't you tell us earlier that it might not work on port 80? Now I changed my wordpress url and can't change it back easily. Great thank you!
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Sorry
@1979zeesh
@1979zeesh 10 ай бұрын
how i can setup if im using apache webserver and my php/html pages are on the pi....im not using wordpress. just created simple and put that in /var/www/html on pi
@bravosierra2447
@bravosierra2447 2 жыл бұрын
Would this work to for running Minecraft servers?
@jamesnorona1345
@jamesnorona1345 2 жыл бұрын
Tony, I followed your last tutorial for wordpress on a rpi and I followed this one too. Now, how can I use the domain name I bought so that the wordpress site is navigable from the domain name? Thanmks for the help!
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You can simply set up a DNS A record kzbin.info/www/bejne/h5Sxc3-JiNNrjMk
@wilsoncounty7051
@wilsoncounty7051 3 жыл бұрын
Hey Tony, when you mention we can watch another video if we don't understand how you get to this point, could you kindly link the video you are referring? Btw, great channel.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
This video will show you how to setup WordPress on a Raspberry Pi kzbin.info/www/bejne/bqHWmqCXdtdki5o. Is that what you're asking for?
@thelogicalindian2720
@thelogicalindian2720 Жыл бұрын
Why didn't you use and show a different port?
@daurham
@daurham 2 жыл бұрын
Solid video and very informational! Have you found a reliable work around for this ending? I’ve got Cox too and need to connect my pi via EC2 for a short demo presentation. If not, any leads on topics to research?
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Perhaps try a different port than 22 that Cox doesn't block. Just make sure you change the /etc/ssh/sshd_config files to listen on this new port
@daurham
@daurham 2 жыл бұрын
@@TonyTeachesTech Thanks Tony! 🙏🏼
@dmac5678
@dmac5678 2 жыл бұрын
Is opening port 80 or 8080 externally dangerous? I have a RPI4 and just want a Wordpress/html page to be available with some pictures on it. Is it insecure to open that port?
@morbid1134
@morbid1134 Жыл бұрын
Only if you do it improperly. For instance, let us say I have a server in my house for a website. Externally, I decide to open port 6394 for no specific reason. My router will forward any traffic incoming that port to the specified, internal, IP address on port 80 (HTTP) or 443 for (HTTPS). My server (raspberry pi or otherwise) will handle the traffic. If I mishandle the traffic then I may be able to be exploited. To better illustrate, my service that is handling the traffic and giving out my website is an Apache HTTP Server 2.4.17; the reason I chose this version is because there was an exploit: In Apache HTTP Server 2.4 releases 2.4.17 to 2.4.38, with MPM event, worker or prefork, code executing in less-privileged child processes or threads (including scripts executed by an in-process scripting interpreter) could execute arbitrary code with the privileges of the parent process (usually root) by manipulating the scoreboard. Non-Unix systems are not affected. With this server on my Linux based Raspberry pi then I would have been vulnerable to this attack. Also, if my raspberry pi's IP is not static and it restarts then the DHCP server may reallocate the IP to a different one. This means the requests to your website will be going to nothing; it is a hole in your network with no one watching it. It also means your raspberry pi would be listening for traffic on port 80 but the router isn't forwarding to its new IP address.
@milofirestar111
@milofirestar111 2 жыл бұрын
Hi, Tony! I have a really quick question. My ISP uses a setup with a separate modem and router. The router that the ISP supplied didn’t have a port forwarding option I could find, so I simply kept the ISP modem and used a better quality router I had kicking around the house (Netgear R6300 v1) which has port forwarding. So I have successfully setup port forwarding to my pi on my R6300, BUT… every time I get to the point where I paste my external IPv4 IP into my Wordpress site and save changes, the site reloads and I can no longer access the Wordpress site my admin dashboard. I have even reinstalled Wordpress and changed the “listen on” port to 8080 in the “Wordpress.config” and changed the port forwarding to 8080 in the router settings, in case my ISP blocks web traffic on port 80, but no luck. I haven’t been able to find any info online regarding my ISP and what ports they block. Any suggestion on how I can rectify this issue would be greatly appreciated. I am very eager to get my Wordpress site up and going and accessible from outside my LAN. Thanks in advance! -Milo
@Kyle_v2
@Kyle_v2 2 жыл бұрын
you will have better luck asking in a related subreddit
@milofirestar111
@milofirestar111 2 жыл бұрын
@@Kyle_v2 Thanks 🙏 for the response. I have done quite a bit of research online regarding this topic without much luck. (Including some Reddit forums) Do you have any specific threads you would recommend reading that might be insightful? Thanks in advance! -Milo
@hydromakers
@hydromakers Ай бұрын
I did it with a redirect on 443 I had to used two domains
@shiyammosies5975
@shiyammosies5975 2 жыл бұрын
Another solution: Run nginx in a docker container and expose a different port and then port forward that port. This should work.
@justjoejoe_0
@justjoejoe_0 2 жыл бұрын
Why would you keep this video up, w/o updating the introduction?
@G-3-A-R-Z
@G-3-A-R-Z 3 жыл бұрын
Cool video. I was wondering if you where going to have problems with cox. They are death eaters. lol
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Haha in this instance I agree
@talinross
@talinross 3 жыл бұрын
I find videos where people mess up to be more educational than the videos were there is no mess ups
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Haha yeah it can be valuable
@anouaroumaacha836
@anouaroumaacha836 3 жыл бұрын
thans dude ❤️
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
Welcome
@arashace
@arashace 3 жыл бұрын
Great content, Tony! I followed along in the video. After replacing my internal URL with my external URL, I can no longer access my my website from RPI. Any ideas of how I can remedy this?
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
What do you mean that you replaced your internal URL with your external URL?
@arashace
@arashace 3 жыл бұрын
@@TonyTeachesTech At 8:05 in the video, I replaced the local IP with the external IP in Wordpress. Now I am unable to access Wordpress admin.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
@@arashace This will only work if you access WordPress from an external network. If you are connected to your local network, this will not work
@PRIMARYATIAS
@PRIMARYATIAS 2 жыл бұрын
Amazing though it seems like I lost my credentials with playing with ex/in addresses 🙃 thanks
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
You're welcome!
@WarlockBE
@WarlockBE Жыл бұрын
This an 2 year old clip, so now there is "twingate" ;-). With twingate you don't need to forward anything on your router, and it allows you to acces ANY device in your LAN over internet. ( This clip shows you how to set it up kzbin.info/www/bejne/a6bTXpqViNV_q80 ) ( You can set it up without an "Identity Provider" )
@joesalgadSF415
@joesalgadSF415 3 жыл бұрын
It doesn’t doing on their servers or is it just the modem? I noticed that you using their modem/router that’s why they want you to go to their portal. I wonder if you get your owned modem router you’ll have better luck. I got my own modem and eero routers better than their stuff.
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
If you have your own router, then yes that is a better option than what I have showed you in this video since my router is owned by my ISP
@randombeta
@randombeta 3 жыл бұрын
Same problem, ISP
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
👎
@JonathanCalkins
@JonathanCalkins 2 жыл бұрын
This is so damn cool
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Thanks Jonathan
@redslashed
@redslashed 2 жыл бұрын
Why didnt you blurr your ip💀😅
@kairyu8715
@kairyu8715 3 жыл бұрын
yes
@TonyTeachesTech
@TonyTeachesTech 3 жыл бұрын
:)
@jmiceter1
@jmiceter1 2 жыл бұрын
I don't mean to be mean. But your video is how to port forward and access you rpi. You didn't do that... I suggest you update the title or finish the job. The content was great but you never finished..
@TonyTeachesTech
@TonyTeachesTech 2 жыл бұрын
Understand Jonathan. I'm hoping you can take my word that if my ISP wasn't the limiting factor, things would work. Something I didn't try was using another port.
How to Access your Raspberry Pi via SSH over the Internet (port forwarding)
8:13
Port Forwarding Explained + The Risks You Need to Know
14:03
CertBros
Рет қаралды 32 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
How to Setup WordPress on Raspberry Pi
18:22
Tony Teaches Tech
Рет қаралды 42 М.
Hosting Without The Need to Port Forward Using This Trick!
8:36
Novaspirit Tech
Рет қаралды 98 М.
Raspberry Pi versus AWS // How to host your website on the RPi4
8:39
I Turned A Raspberry Pi Into A Node.js Web Server
7:50
PortEXE
Рет қаралды 114 М.
How to put an HTML website online (on the Internet)
29:37
SuperSimpleDev
Рет қаралды 1,8 МЛН
КАК УСТРОЕН TCP/IP?
31:32
Alek OS
Рет қаралды 250 М.
3 Levels of WiFi Hacking
22:12
NetworkChuck
Рет қаралды 2,4 МЛН
DON'T Use Raspberry Pis for Servers! (Use THIS)
16:23
Hardware Haven
Рет қаралды 1,2 МЛН
The ULTIMATE Raspberry Pi 5 NAS
32:14
Jeff Geerling
Рет қаралды 2,5 МЛН