Jump to content

Port Forwarding Question

Go to solution Solved by badreg,
8 minutes ago, ArashiNoOuji said:

I don't really get it but when I did netstat it doesn't show the port 21

 

Then your FTP server is either not running, or not listening on port 21. That is why you are getting "Connection refused".

Hi I'm not sure if this is the right sub to ask this on I'm sorry if it's not,

 

So I'm trying to port forward ftp which is 21 and I did all the port forwarding on my router and allowed it on my firewall but it still says connection refused 

and I searched around and came across this program SPI port forward and I tried it, and suddenly my port forward worked, I was wonder why is that,

I don't really want to use a program every time I need to use the port, why did it work right after using SPI port forward

 

I'm sorry if this is the wrong sub for this question, and thank you in advance 

Link to comment
https://linustechtips.com/topic/1025163-port-forwarding-question/
Share on other sites

Link to post
Share on other sites

What are you trying to open a port to? I would really advise against opening ports to a windows machine as they are not exactly the most secure things in the world, and you wouldn't believe how many failed login attempts I get on my server when I have port 22 (ssh/sftp) open and forwarded to it. I use RSA keys to log in, so im not terribly worried as that shouldn't be exploitable (everything is exploitable if someone tries hard enough.......) but I rarely leave the port open for more than a short time and have decent security in place.

 

If its an option, I would recommend you set up a VPN, even one as simple as buying a ~40 dollar raspberry pi and setting it up on that, plenty of tutorials online and its super simple!

Rig: i7 13700k +Contact Frame - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Crucial P3 2TB NVMe for photo work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - PTM 7950 - - XT45 X-Flow 420 + UT60 280 rads externally mounted - - EK XRES RGB PWM - - Fractal Define S2 - - DellAlienware AW3423DWF 34" -- Logitech Pro X Superlight - - Logitech G710+ - - LTT Northern Lights Deskpad

 

Headphones/amp/dac: Schiit Bifrost Multibit - -  Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x8TB WD Red RAID Z2 - - 2x 800 GB SAS SSD’s (1 SLOG, 1 L2Arc) - - 45 HomeLab HL15 15 Drive 4U - - Corsair RM650i - - LSI 9305-16i HBA - - TreuNAS + many other VM’s

 

Unifi UDM Pro in front of full unifi network infrastructure

 

iPhone 17 Pro - - MacBook Air M3

Link to post
Share on other sites

15 minutes ago, LIGISTX said:

What are you trying to open a port to? I would really advise against opening ports to a windows machine as they are not exactly the most secure things in the world, and you wouldn't believe how many failed login attempts I get on my server when I have port 22 (ssh/sftp) open and forwarded to it. I use RSA keys to log in, so im not terribly worried as that shouldn't be exploitable (everything is exploitable if someone tries hard enough.......) but I rarely leave the port open for more than a short time and have decent security in place.

 

If its an option, I would recommend you set up a VPN, even one as simple as buying a ~40 dollar raspberry pi and setting it up on that, plenty of tutorials online and its super simple!

well it's not mostly ftp / servers that is important, the ftp was just an example, I was just wondering why that's the case, why is it when I just port forward it on my router it doesn't work and when I use a software it works 

Link to post
Share on other sites

1 minute ago, ArashiNoOuji said:

well it's not mostly ftp / servers that is important, the ftp was just an example, I was just wondering why that's the case, why is it when I just port forward it on my router it doesn't work and when I use a software it works 

Well I suppose it depends what client you are using. I would think no software is required, but what is the client? If its windows, does it have to be told what port to listen on and that is what that program is doing? I honestly don't know, I only ever use linux for such things... Never tried to FTP/SFTP/SSH anything like that to a windows box over WAN.

Rig: i7 13700k +Contact Frame - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Crucial P3 2TB NVMe for photo work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - PTM 7950 - - XT45 X-Flow 420 + UT60 280 rads externally mounted - - EK XRES RGB PWM - - Fractal Define S2 - - DellAlienware AW3423DWF 34" -- Logitech Pro X Superlight - - Logitech G710+ - - LTT Northern Lights Deskpad

 

Headphones/amp/dac: Schiit Bifrost Multibit - -  Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x8TB WD Red RAID Z2 - - 2x 800 GB SAS SSD’s (1 SLOG, 1 L2Arc) - - 45 HomeLab HL15 15 Drive 4U - - Corsair RM650i - - LSI 9305-16i HBA - - TreuNAS + many other VM’s

 

Unifi UDM Pro in front of full unifi network infrastructure

 

iPhone 17 Pro - - MacBook Air M3

Link to post
Share on other sites

1 minute ago, badreg said:

Then your FTP server is either not running, or not listening on port 21. That is why you are getting "Connection refused".

I'm so dumb, that's what it was, I didn't have it running and I tested the port, I thought I can test it without running it. thank you 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×