Need help Port Forwarding

Hi, I recently created a code-server so that I could use VSCode on my phone through the browser. It works great but whenever I change IPs (eg leave my house, or use my phone's LTE) I get kicked out of my Codeserver. I asked this question before and apparantly needed to do a Port Forward and Im not sure how to do that (I tried looking it up but I still didnt understand). Im hoping someone can guide me through the process of portforwarding so I could use VSCode through my phone's browser at any location. Thanks!
No description
26 Replies
XRPisDadddy
XRPisDadddy3y ago
For context this is how my ISP admin panel looks like (My ISP is Spectrum), and I think I have to port forward the value 8080 because the link to the CodeServer thing is ipaddress:8080
XRPisDadddy
XRPisDadddy3y ago
Theres also this "Port Forward" gui if anyone can help me set it up so I could VSCode on my phone anywhere thatll be awesome
No description
Atif
Atif3y ago
can you show just try to forward the 8080 port. keep internal and external port same Then you shoud be able to access it from internet using your public IP address:8080
Phorcys
Phorcys3y ago
Service name : Coder External&Internal port : 8080 keep tcp
XRPisDadddy
XRPisDadddy3y ago
Still not working Should I try another other protocols
XRPisDadddy
XRPisDadddy3y ago
No description
Phorcys
Phorcys3y ago
no it won't work TCP is the only protocol that matters in this case (http) do you have another rule on 8080 ?
XRPisDadddy
XRPisDadddy3y ago
ok How do I know if I port forwarded successfully Maybe the code-server doesnt work wwhen I use LTE because of security reasons Also another question: Lets say if I use a Cloud Computer (eg Linode or DigitalOcean) and use the code-server there wouldnt it already be port forwaded and I could skip this step
Phorcys
Phorcys3y ago
it would try going to your external ip:8080
Rover656
Rover6563y ago
(It might be worth suggesting using something like Tailscale instead of opening a port to your home network, I'd personally consider that solution safer. Annoying as you have some extra client software but I think the tradeoff is worthwhile)
Phorcys
Phorcys3y ago
I would not having to VPN is just really annoying and opening ports isn't really that dangerous
Rover656
Rover6563y ago
That's fair, like I say the extra client setup is can be annoying but I generally feel uneasy about opening internal things like this to the global internet, as much as I feel that the softwares I run can be trusted, its much better in my head keeping stuff behind a closed network. Again that's just my 2 cents :)
Phorcys
Phorcys3y ago
I mean you do you but I consider that as long as you're not exposing something sensitive to the public with no authentication you're p much fine the only thing you can fear is if there's a vulnerability in your version of the product and that the chinese bots that are scanning your network can exploit those or ddos but honestly it isn't a real problem from a consumer pov
XRPisDadddy
XRPisDadddy3y ago
Why is it generally unsafe Im new to this stuff
Rover656
Rover6563y ago
I just generally feel uneasy about exposing ports on a local machine to the wider network. It's less that its unsafe if your configuration is sound and you've not got any security vulnerabilities and strong enough authorisation. I however am not 100% confident in my own local systems so I prefer to keep them behind this VPN setup
XRPisDadddy
XRPisDadddy3y ago
what if I use Linode That would be much safer right Since at worst the cloud computer is at risk and I could just deploy another one
Rover656
Rover6563y ago
I'm no expert on cyber security so it'd be wrong of me to advise you further, I can only really speak of my own assumptions and actions based on what i feel. I'd advise you seek advice from somebody with more experience :)
Atif
Atif3y ago
Were you able to solve your issue using the port forward method? @XRPisDadddy
Phorcys
Phorcys3y ago
nah same risks but the risks are kinda tiny in this scenario only risks are those
XRPisDadddy
XRPisDadddy3y ago
No description
XRPisDadddy
XRPisDadddy3y ago
It looks opened But I type my actual IP:8080 it doesnt work Only the local host:8080 And it still doesnt work when I use a different IP (eg my phone outside/LTE) woah wait I went on https://www.portchecktool.com/ and I input my external ip and scan for port 8080 and it says Success
XRPisDadddy
XRPisDadddy3y ago
No description
XRPisDadddy
XRPisDadddy3y ago
OMG IT WORKS For anyone needing help Port Forwarding for code-server go to your ISP Admin Panel, go to your router settings and input these settings: External / Internal Port: 8080 Internal Host: Your Desktop / code-server host local ip External Host: Leave Blank Protocol: TCP-UDP And if you want to check if you did it successfully go to https://www.portchecktool.com/ input your external / actual IP and Port 8080 Thanks for the help @Atif @Phorcys @Rover656 :Pepe_King: You may close the thread
Phorcys
Phorcys3y ago
happy that it works for you!
jiujiu
jiujiu3y ago
why I use the docker create templates, error by: template import provision for start: recv import provision: exit status 1 what need i do? i couldn't build coder oss
Phorcys
Phorcys3y ago
make a new post
Want results from more Discord servers?
Add your server