Gaming FTP Setup

metamaster

Well-Known Member
OP
Member
Joined
Mar 7, 2010
Messages
875
Trophies
0
XP
162
Country
Canada
So I've been trying to host an FTP site for a while, but I can only access it internally. I've tried port forwarding and changing the port but to no avail.
I've tried using IIS manager in Windows 7.
Does anyone have any tips?
 

metamaster

Well-Known Member
OP
Member
Joined
Mar 7, 2010
Messages
875
Trophies
0
XP
162
Country
Canada
I was kind of trying to avoid giving out my ip... I guess I'll just use myip instead my actual ip address.

I used IIS manager to set up an FTP server, with port 5678.
To port forward, I set the port range from 5678 to 5678, TCP and UDP, put the local ip of the computer I'm using and enabled it.
I tried accessing it through firefox like so: ftp://myip:5678/ and that didn't really work. Though if I used ftp://mylocalip:5678/ I would gain access.
I also tried with http://myip:5678/ and would get this:

CODE
220 Microsoft FTP Service
500 'GET / HTTP/1.1': command not understood.
500 'Host: myip:5678': command not understood.
500 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11': command not understood.
500 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8': command not understood.
500 'Accept-Language: en-us,en;q=0.5': command not understood.
500 'Accept-Encoding: gzip,deflate': command not understood.
500 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7': command not understood.
500 'Keep-Alive: 115': command not understood.
500 'Connection: keep-alive': command not understood.
500-'
500 ': command not understood.
 

metamaster

Well-Known Member
OP
Member
Joined
Mar 7, 2010
Messages
875
Trophies
0
XP
162
Country
Canada
Someone else tried, and unfortunately it didn't work. Is there anything else that can block this, like a firewall?
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,684
Trophies
2
Age
44
Location
Engine room, learning
XP
15,309
Country
France
I could say wrong things, if someone has more info, please correct me.

not sure if it could help :

1:
There's active and passive mode.

If your ftp is set to work in active mode, you needs to open 2 ports (usually, it's done automatically, so you don't even know it. port 21, and port20).
Port 20 is used automatically when the router see an initiated connection on port21.
Did you try using port 21 for your ftp ? (so the router automates the port 20 opening too)

If it works, try to open port and port-1 (5678 and 5677)


2:
Did you try a real ftp client instead of mozilla firefox ?
FlashFXP, Filezilla, etc.
As firefox is not sending pure FTP requests. And initiates multiple connections for the same client when browsing folders (most servers doesn't support multiple-IP at the same time).

3:
You can open only TCP (no UDP)
 

metamaster

Well-Known Member
OP
Member
Joined
Mar 7, 2010
Messages
875
Trophies
0
XP
162
Country
Canada
Opening port 5677 seems to have done the trick! I'm not sure if others can access it though, but thanks anyway.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,684
Trophies
2
Age
44
Location
Engine room, learning
XP
15,309
Country
France
Edit :
After reading the difference between active and passive, I think the port 20 was needed by yourself as a client, not as a server, because you couldn't accept incoming data connection from the server on port 20.

The active or passive mode is initiated by the client.

Active :
client:1024 > connect > server:21
server:21 > ask connection method > client:1024
client:1024 > ACT > server:21
server20 > send data > client:20, client has to accept incoming connection on server_port-1
(You opened port-1, as a client you could connect to your server, but other client will have to do the same)

Advantage : you open only port 21 (and maybe port-1)
Disadvantage : client must open server_port-1 too.

Passive :
client:1024 > connect > server:21
server:21 > ask connection method > client:1024
client:1024 > PASV > server:21
server:21 > please use port 1254 > client:1024
client:1025(port+1) > connect > server:1254, server has to accept incoming connection on port 1254

Advantage : clients won't have to open any port.
Disadvantage : server has to define acceptable ports ranges for incoming connections (open them in the router). the range should be configurable in your ftp server.


If you want many users to use your ftp, you should allow passive mode, and set a range of accepted ports.
else, you will have to tell users to open 5677. (it can be a protection though, but I think hackers know that they have to open port-1)

Here is a tutorial to set passive mode on IIS :
http://www.velikan.net/iis-passive-ftp/
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: how u side load movies?