How to prevent FTPserver from changing to IPv6 address?

85 views
Skip to first unread message

Tim G

unread,
Dec 22, 2014, 5:37:52 PM12/22/14
to andreasl...@googlegroups.com
I'm running FTPServer on a Nexus 10.  I often try to connect from a client, and the connection fails. I know FTPserver is running on the tablet, because it is set to run at startup.
When I investigate on the Nexus 10, I find FTPserver is listening on an IPv6 address. In settings, the default address is WLAN- (IPv4), but for unknown reasons, it sometimes switches to IPv6 and remains there.

Is there any way to disable IPv6 operation entirely when on an IPv4 network?


Andreas Liebig

unread,
Jan 7, 2015, 2:21:43 AM1/7/15
to andreasl...@googlegroups.com

Hello.

I don't know if it is possible to disable IP v6 completely on the android device.

For the FTPServer, if v4 is chosen it should stick to that. Might be a bug in the FTPServer. I will have to look into that.

Thank you for the feedback.
Andreas


--
You received this message because you are subscribed to the Google Groups "AndreasLiebig" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andreasliebiga...@googlegroups.com.
To post to this group, send email to andreasl...@googlegroups.com.
Visit this group at http://groups.google.com/group/andreasliebigapps.
For more options, visit https://groups.google.com/d/optout.

tim.11....@gmail.com

unread,
Nov 3, 2015, 3:38:57 PM11/3/15
to AndreasLiebig
I'm still having this problem. FTPserver running on my tablet will "choose" IPv6 and remain in that state until I manually stop the server and start it again. There is always an IPv4 address also assigned and available.
Maybe FTPserver could have an option to "never select IPv6 - just wait for IPv4"

tim.11....@gmail.com

unread,
Nov 8, 2015, 2:37:07 PM11/8/15
to AndreasLiebig
Is it possible to control ftpserver from Tasker? Maybe I could create a once a day task to cause ftpserver to restart the service?

Andreas Liebig

unread,
Nov 12, 2015, 1:02:15 AM11/12/15
to AndreasLiebig

Yes, FTPServer has a tasker plugin. You should find it in Tasker under the plugins section.


<tim.11....@gmail.com> schrieb am So., 8. Nov. 2015 20:37:
Is it possible to control ftpserver from Tasker? Maybe I could create a once a day task to cause ftpserver to restart the service?

tim.11....@gmail.com

unread,
Nov 24, 2015, 11:57:41 AM11/24/15
to AndreasLiebig
I have created a task to stop and start the FTP service 5 minutes before the scheduled time for the connection to be made.  We'll see how well that works.

I have discovered another way that FTPserver is failing.  I observe that my Wi-Fi SSID is listed multiple times in the "allowed connections" list.  I sometimes find that even though the tablet is connected to my Wi-Fi network on the proper SSID, I get still "connection refused" when I try to FTP to it.  When I examine the FTPserver settings, I find that another instance of my SSID has appeared on the allowed connections list, and is unchecked.  I check it, and then FTPserver begins working again -- until the next time yet another instance of the SSID appears.

Why are there multiple instances of the same SSID in the list?  Is FTPserver considering every unique Access Point MAC address as a different network?  That could be a problem in the case of a corporate or campus network that has large numbers of APs.  Ideally, FTPserver would give the choice of making the Allowed Connection filter generic for the SSID, or specific to a single AP MAC address (if desired).

Andreas Liebig

unread,
Dec 6, 2015, 7:38:54 AM12/6/15
to AndreasLiebig
The FTPServer gets the SSIDs from the operation system.
So it could be that multiple Access Points are reported as multiple SSIDs, or multiple instances of the same SSID.
If that is the case, I see the problem that this could cause.
I will have to look into that.

Br,
Andreas

Tim Godfrey

unread,
Jul 26, 2017, 9:30:02 AM7/26/17
to AndreasLiebig
Andreas,

I'm checking back to see if you have been able to look at the only two issues with FTPserver that I am aware of:

1) Periodically, FTPserver will switch over to an IPv6 and remain that way.  I have to manually stop and re-start the FTPservice, and then it returns to IPv4.  Could there be a new feature to disable IPv6 and cause FTPserver to keep trying DHCP for an IPv4 address?

2) There is still the issue with FTPserver seeing the my SSID as a new, unique network. I have not added a new AP or BSSID to my network for years.  However, today I found FTPserver was on IPv4 but still refusing connections. In the Allowed Connections list, yet another instance of my same SSID name had appeared, unchecked, at the bottom of the list of about 10 of the same SSID that are already in the list. I checked the new instance, and now it is accepting connections (until the next time).

I'm using 2.9.1 (66).  If these two issues could be solved, FTPserver would be "perfect" from my perspective.  Let me know if I can send you any debugging information.

Best Regards,
Tim.



At 07:38 AM 12/6/2015, Andreas Liebig wrote:
The FTPServer gets the SSIDs from the operation system.
So it could be that multiple Access Points are reported as multiple SSIDs, or multiple instances of the same SSID.
If that is the case, I see the problem that this could cause.
I will have to look into that.

Br,
Andreas

< tim.11....@gmail.com> schrieb am Di., 24. Nov. 2015 um 17:57Â Uhr:
I have created a task to stop and start the FTP service 5 minutes before the scheduled time for the connection to be made.  We'll see how well that works.

I have discovered another way that FTPserver is failing.  I observe that my Wi-Fi SSID is listed multiple times in the "allowed connections" list.  I sometimes find that even though the tablet is connected to my Wi-Fi network on the proper SSID, I get still "connection refused" when I try to FTP to it.  When I examine the FTPserver settings, I find that another instance of my SSID has appeared on the allowed connections list, and is unchecked.  I check it, and then FTPserver begins working again -- until the next time yet another instance of the SSID appears.

Why are there multiple instances of the same SSID in the list?  Is FTPserver considering every unique Access Point MAC address as a different network?  That could be a problem in the case of a corporate or campus network that has large numbers of APs.  Ideally, FTPserver would give the choice of making the Allowed Connection filter generic for the SSID, or specific to a single AP MAC address (if desired).



On Thursday, November 12, 2015 at 12:02:15 AM UTC-6, Andreas Liebig wrote:

Yes, FTPServer has a tasker plugin. You should find it in Tasker under the plugins section.

<tim.11....@gmail.com> schrieb am So., 8. Nov. 2015 20:37:

Is it possible to control ftpserver from Tasker? Maybe I could create a once a day task to cause ftpserver to restart the service?

--
You received this message because you are subscribed to the Google Groups "AndreasLiebig" group.

To unsubscribe from this group and stop receiving emails from it, send an email to andreasliebiga...@googlegroups.com.
To post to this group, send email to andreasl...@googlegroups.com.


Visit this group at http://groups.google.com/group/andreasliebigapps.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "AndreasLiebig" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andreasliebiga...@googlegroups.com.
To post to this group, send email to andreasl...@googlegroups.com.
Visit this group at http://groups.google.com/group/andreasliebigapps.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "AndreasLiebig" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/andreasliebigapps/BRMy6wzFd3A/unsubscribe .
To unsubscribe from this group and all its topics, send an email to andreasliebiga...@googlegroups.com.

To post to this group, send email to andreasl...@googlegroups.com.
Visit this group at http://groups.google.com/group/andreasliebigapps.
For more options, visit https://groups.google.com/d/optout.

Tim Godfrey

unread,
Jul 26, 2017, 11:59:57 AM7/26/17
to AndreasLiebig
Andreas,

I forgot one other thing.

FTPserver does not seem to support recursive directory listing.  From a client command line ftp session:

ls -R and ls -lR

result in listing for only the current directory.

Is there a setting on the server side for this behaviour?  I could not find it,

Best Regards,
Tim.



At 08:29 AM 7/26/2017, Tim Godfrey wrote:
Andreas,

I'm checking back to see if you have been able to look at the only two issues with FTPserver that I am aware of:

1) Periodically, FTPserver will switch over to an IPv6 and remain that way.  I have to manually stop and re-start the FTPservice, and then it returns to IPv4.  Could there be a new feature to disable IPv6 and cause FTPserver to keep trying DHCP for an IPv4 address?

2) There is still the issue with FTPserver seeing the my SSID as a new, unique network. I have not added a new AP or BSSID to my network for years.  However, today I found FTPserver was on IPv4 but still refusing connections. In the Allowed Connections list, yet another instance of my same SSID name had appeared, unchecked, at the bottom of the list of about 10 of the same SSID that are already in the list. I checked the new instance, and now it is accepting connections (until the next time).

I'm using 2.9.1 (66).  If these two issues could be solved, FTPserver would be "perfect" from my perspective.  Let me know if I can send you any debugging information.

Best Regards,
Tim.


At 07:38 AM 12/6/2015, Andreas Liebig wrote:
The FTPServer gets the SSIDs from the operation system.
So it could be that multiple Access Points are reported as multiple SSIDs, or multiple instances of the same SSID.
If that is the case, I see the problem that this could cause.
I will have to look into that.

Br,
Andreas

< tim.11....@gmail.com> schrieb am Di., 24. Nov. 2015 um 17:57Â Uhr:
I have created a task to stop and start the FTP service 5 minutes before the scheduled time for the connection to be made.  We'll see how well that works.
I have discovered another way that FTPserver is failing.  I observe that my Wi-Fi SSID is listed multiple times in the "allowed connections" list.  I sometimes find that even though the tablet is connected to my Wi-Fi network on the proper SSID, I get still "connection refused" when I try to FTP to it.  When I examine the FTPserver settings, I find that another instance of my SSID has appeared on the allowed connections list, and is unchecked.  I check it, and then FTPserver begins working again -- until the next time yet another instance of the SSID appears.
Why are there multiple instances of the same SSID in the list?  Is FTPserver considering every unique Access Point MAC address as a different network?  That could be a problem in the case of a corporate or campus network that has large numbers of APs.  Ideally, FTPserver would give the choice of making the Allowed Connection filter generic for the SSID, or specific to a single AP MAC address (if desired).


On Thursday, November 12, 2015 at 12:02:15 AM UTC-6, Andreas Liebig wrote:

Yes, FTPServer has a tasker plugin. You should find it in Tasker under the plugins section.
<tim.11....@gmail.com> schrieb am So., 8. Nov. 2015 20:37:

Is it possible to control ftpserver from Tasker? Maybe I could create a once a day task to cause ftpserver to restart the service?
--
You received this message because you are subscribed to the Google Groups "AndreasLiebig" group.

To unsubscribe from this group and stop receiving emails from it, send an email to andreasliebiga...@googlegroups.com.
To post to this group, send email to andreasl...@googlegroups.com.

Visit this group at http://groups.google.com/group/andreasliebigapps.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "AndreasLiebig" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andreasliebiga...@googlegroups.com.
To post to this group, send email to andreasl...@googlegroups.com.
Visit this group at http://groups.google.com/group/andreasliebigapps.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "AndreasLiebig" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/andreasliebigapps/BRMy6wzFd3A/unsubscribe .
To unsubscribe from this group and all its topics, send an email to andreasliebiga...@googlegroups.com.

To post to this group, send email to andreasl...@googlegroups.com.
Visit this group at http://groups.google.com/group/andreasliebigapps.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages