31 Jan, 2012, aelyah wrote in the 1st comment:
Votes: 0
The hftp service works fine when accessed with the good ol' unix ftp client.

I use Textastic on iPad and it connects fine to any other ftp server. I like Textastic for the (aproximative :))code coloring part.Here is the Textastic log for hftp:


== Info: About to connect() to 184.73.156.54 port 6660 (#0)
== Info: Trying 184.73.156.54… == Info: connected
<= Recv header, 0000000030 bytes (0x0000001e)
0000: 220- Haven FTP server ready..
<= Recv header, 0000000024 bytes (0x00000018)
0000: 220- … FTPD news.
<= Recv header, 0000000025 bytes (0x00000019)
0000: 220- … /news/ftpd.
<= Recv header, 0000000006 bytes (0x00000006)
0000: 220- .
<= Recv header, 0000000054 bytes (0x00000036)
0000: 220 Please login with your creator name or anonymous..
=> Send header, 0000000013 bytes (0x0000000d)
0000: USER aelyah
<= Recv header, 0000000034 bytes (0x00000022)
0000: 331 Password required for aelyah..
=> Send header, 0000000019 bytes (0x00000013)
0000: PASS Xxxxxx
<= Recv header, 0000000027 bytes (0x0000001b)
0000: 230 User aelyah logged in..
=> Send header, 0000000005 bytes (0x00000005)
0000: PWD
<= Recv header, 0000000043 bytes (0x0000002b)
0000: 257 "/realms/aelyah" is current directory..
== Info: Entry path is '/realms/aelyah'
=> Send header, 0000000006 bytes (0x00000006)
0000: EPSV
== Info: Connect data stream passively
<= Recv header, 0000000026 bytes (0x0000001a)
0000: 502 Unknown command epsv..
== Info: disabling EPSV usage
=> Send header, 0000000006 bytes (0x00000006)
0000: PASV
<= Recv header, 0000000045 bytes (0x0000002d)
0000: 227 Entering Passive Mode (127,0,0,1,25,203).
== Info: Trying 127.0.0.1… == Info: Connection refused
== Info: couldn't connect to host
== Info: Closing connection #0
== Info: Couldn't connect to server

What could be prompting the client to look for localhost?

I tried the active mode, for some reason it times out on retrieving the directory listing.

I set the host ip, opened the ports and verified that I can ftp from a different unix machine.

Another question: how do I activate the normal ftp service? When I do mudconfig ftp enable it says it is already enabled. If I try to connect to port 21 I get a connection refused, even if I ftp localhost. The ports 20 and 21 are otherwise open.

A.
31 Jan, 2012, Cratylus wrote in the 2nd comment:
Votes: 0
aelyah said:
What could be prompting the client to look for localhost?


http://dead-souls.net/ds-admin-faq.html#...

My guess is you either haven't set the hostip despite thinking you have, or that client is goofy.

aelyah said:
I tried the active mode, for some reason it times out on retrieving the directory listing.

I set the host ip, opened the ports and verified that I can ftp from a different unix machine.


It's kind of hard to know which problem you're talking about now. Let's stick to one thing.

It sounds like hftp works fine except from a specific client. I'm not in a position to help much there.

aelyah said:
Another question: how do I activate the normal ftp service? When I do mudconfig ftp enable it says it is already enabled. If I try to connect to port 21 I get a connection refused, even if I ftp localhost. The ports 20 and 21 are otherwise open.


The mud ftp server won't be on port 21 unless you specifically set it to be so, and run the mud as root. I do not recommend you run the mud as root. I suggest you determine which port your mud is using for ftp: http://dead-souls.net/ds-admin-faq.html#...

Please note that the ftp server and the passive ftp server in DS are not supported. This is because there are a bazillion freaky clients out there doing their own thing, there are a shizillion ways for people to incorrectly follow the ftp instructions, and it's a clunky interface for moving files around unless you're moving many of them.

I recommend instead the use of creweb: http://dead-souls.net/ds-admin-faq.html#...

I do get that you have some kind of hip editor with integrated ftp and you want to use it. That's cool. But if normal ftp clients work and your groovy editor doesn't, I'm thinking maybe look in your editor settings.

-Crat
31 Jan, 2012, Cratylus wrote in the 3rd comment:
Votes: 0
Ah and one more thing, you might need to apply this fix to CreWeb: http://lpmuds.net/smf/index.php?topic=13...

(no you dont have to reboot to apply new webserver code :) )

-Crat
http://lpmuds.net
31 Jan, 2012, aelyah wrote in the 4th comment:
Votes: 0
How do I check/query the host IP once I issued the mudconfig hostip xxx.xxx.xxx.xxx command ? To make sure it is correctly set?
(I want to make sure I don't give up on the FTP server before I understand what is going on).

About the active mode:
In active mode it gets stuck on retrieving the directory listing. The client forces Ascii mode so I guess this is why… The server output says that it sent the directory listing but the client is still waiting for something to happen and eventually times out.

CreWeb
No syntax coloring :D [j/k]

Is there any documentation on the web server internals, like how is the session established, once we have a session how we check it from LPC etc…

RTFM links are just fine :)

A.
31 Jan, 2012, Cratylus wrote in the 5th comment:
Votes: 0
aelyah said:
How do I check/query the host IP once I issued the mudconfig hostip xxx.xxx.xxx.xxx command ? To make sure it is correctly set?
(I want to make sure I don't give up on the FTP server before I understand what is going on).


Type: eval return HOST_IP


aelyah said:
About the active mode:
In active mode it gets stuck on retrieving the directory listing. The client forces Ascii mode so I guess this is why


Sounds right. The docs I wrote for passive mode say this (and I assume it also applies for active…I haven't checked in quite some time):

me said:
The sharp-eyed among you will no doubt have noticed that
binary mode ("bin") is being used. This is because ASCII
mode transfers don't work too reliably, and fail more
often than not.


aelyah said:
CreWeb
No syntax coloring :D [j/k]


It's true that the CreWeb editor is simple to the point of being primitive. However, you can also use CreWeb to upload and download files you've modified with your preferred editor.

Quote
Is there any documentation on the web server internals, like how is the session established, once we have a session how we check it from LPC etc…


No.

-Crat
http://lpmuds.net
31 Jan, 2012, aelyah wrote in the 6th comment:
Votes: 0
It finally worked :)

It turns out that mudconfig hostip xxx.xxx.xxx.xxx updated the config.h file but not the h_ftpd.c file, which has the hostip as a local. I manually replaced the ip address and it started working, with a workable speed on a Amazon micro instance.

Pretty ! :)



Your hints helped a lot to identify the issues.

Thank you,
A.
01 Feb, 2012, Cratylus wrote in the 7th comment:
Votes: 0
aelyah said:
It finally worked :)

It turns out that mudconfig hostip xxx.xxx.xxx.xxx updated the config.h file but not the h_ftpd.c file, which has the hostip as a local. I manually replaced the ip address and it started working, with a workable speed on a Amazon micro instance.

Pretty ! :)

Your hints helped a lot to identify the issues.

Thank you,
A.


I'm glad it's working, I'll try to remember to take that local define out. My bad there.

-Crat
http://lpmuds.net
0.0/7