Jump to content

FTP Server behind LAN Problems


Si...

Recommended Posts

Hi,

 

I`m having a few issues and I`m wondering if anyone can help?

 

I`m trying to set up an FTP server on my lan, but I can`t connect to the server.

 

Router/PC/Server specs

D-Link DSL-G624T Router

Windows XP Pro

Athlon 64 3500

2GB RAM

Cerberus FTP Server

 

I have added the PC into the virtual server settings in the router, and set up Cerberus as shown in the screen shows below:

 

 

s1.jpg

s2.jpg

 

 

The Router settings are shown below:

router1.jpg

router2.jpg

 

But when anyone tried to connect to the server they get an error:

Finding Host xxx.xxx.xxx.xxx:2121 ...

Connecting to xxx.xxx.xxx.xxx:2121

Connected to xxx.xxx.xxx.xxx:2121 in 0.000000 seconds, Waiting for Server Response

 

Failed to receive response after connect

Host type (1): Automatic Detect

 

This is the result of ipconfig /all

 

Microsoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 Microsoft Corp.C:\Documents and Settings\Si>ipconfig /allWindows IP Configuration		Host Name . . . . . . . . . . . . : si-8812ed6467b1		Primary Dns Suffix  . . . . . . . :		Node Type . . . . . . . . . . . . : Unknown		IP Routing Enabled. . . . . . . . : No		WINS Proxy Enabled. . . . . . . . : NoEthernet adapter Local Area Connection:		Media State . . . . . . . . . . . : Media disconnected		Description . . . . . . . . . . . : NVIDIA nForce Networking Controller		Physical Address. . . . . . . . . : 00-13-D4-D1-79-9DEthernet adapter Local Area Connection 2:		Connection-specific DNS Suffix  . :		Description . . . . . . . . . . . : Marvell Yukon 88E8001/8003/8010 PCIGigabit Ethernet Controller		Physical Address. . . . . . . . . : 00-13-D4-D1-8B-31		Dhcp Enabled. . . . . . . . . . . : No		IP Address. . . . . . . . . . . . : 192.168.1.22		Subnet Mask . . . . . . . . . . . : 255.255.255.0		Default Gateway . . . . . . . . . : 192.168.1.1		DNS Servers . . . . . . . . . . . : 192.168.1.1											192.168.1.2C:\Documents and Settings\Si>

 

I can connect using ftp://192.168.1.22:2121 but not from an external IP address.

 

I have my firewall turned off whilst I try to get this running.

 

Below are the results for netsh diag gui

 

Netdiag_01102006_004725.zip

 

 

Any Help would be appreciated

Link to comment
Share on other sites

Hi Si. Just a few thoughts that might help. You probably know / covered all this already, but it's not clear from your details.

 

How are you trying to access your server from an external machine - i.e. what IP address are you using? The 192.168... range is not Internet routable and nobody will be able to connect to you on that address from outside your LAN. Have you exposed your machine 192.168.1.22 (or at least the FTP service running on port 2121) in your router/firewall settings? It's usually called something like Port Forwarding, or depending on your setup, you might be able to use NAT.

 

If port forwarding, from an external machine you would attempt to connect to the external IP address of your router, which would in turn forward your request (depending on the port in your request) on to the 192.168.1.22 machine and the service running on port 2121.

 

E.g. router external IP = 217.8.240.75

Router setting to forward all connections for port 2121 (or whatever) to 192.168.1.22:2121.

External machine trying to connect to your ftp server would point to 217.8.240.75:2121.

 

With NAT, the 192.168.1.22 machine may be fully exposed and any port connection will be routed straight through.

 

If you've already covered all of that, perhaps its a passive versus active ftp issue. I won't try and explain everything about passive versus active ftp - check out http://slacksite.com/other/ftp.html if you don't know the details.

 

Hope some of that helps.

Link to comment
Share on other sites

I`ve sorted it now, seems like the router CP doesn`t like firefox as it was hiding settings.

I used IE and sorted it within minutes :)

Just noticed that your "virtual server" settings are the equivalent of the port forwarding stuff I was on about. Oh well. Pleased you sorted it anyway.

Link to comment
Share on other sites

Just noticed that your "virtual server" settings are the equivalent of the port forwarding stuff I was on about. Oh well. Pleased you sorted it anyway.

Also remeber guys that ftp is not like http. http uses port 80 for everything. ftp as a rule only uses port 21 to send commands up and down, data uses other ports. i'ts also a good idea to test ftp connections with a proper ftp client, not your web browser.

 

This link will explain it (ftp) better than I ever will.

 

http://slacksite.com/other/ftp.html

The problem isn't what people don't know, it's what they know that just ain't so.
Vaut mieux ne rien dire et passer pour un con que de parler et prouver que t'en est un!
Mi, ch’fais toudis à m’mote

Link to comment
Share on other sites

Also remeber guys that ftp is not like http. http uses port 80 for everything. ftp as a rule only uses port 21 to send commands up and down, data uses other ports. i'ts also a good idea to test ftp connections with a proper ftp client, not your web browser.

 

This link will explain it (ftp) better than I ever will.

 

http://slacksite.com/other/ftp.html

 

Sure I've seen that link somewhere before... :)

Link to comment
Share on other sites

  • 2 weeks later...
I`ve sorted it now, seems like the router CP doesn`t like firefox as it was hiding settings.

I used IE and sorted it within minutes :)

 

it looks like i have the same problem...

 

i have quite a good confidence with routers. and never had a problem configuring my old d-link di604.. now i have just bought a dsl624t and really can't manage how to make port forwarding work..

 

maybe you can explain me exactly which was the trick in this router??

 

thanks in advance

Link to comment
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
×
×
  • Create New...

Important Information

We and our partners use cookies on our website to give you the most relevant experience by remembering your preferences, repeat visits and to show you personalised advertisements. By clicking “I Agree”, you consent to the use of ALL the cookies. However, you may visit Cookie Settings to provide a controlled consent.