Re: ftpd (FTP) IP Address binding running TK4- on Hercules 4.

"[email protected] [hercules-390]" <[email protected]> 08 Oct 2019 11:07:31 +0000
Newsgroups gmane.comp.emulators.hercules390.general
Message-ID <[email protected]>
Thanks for the insight Jürgen! 
 I don't have any ftp services running on my host system but I have realized that the issue I have been experiencing is due to the fact that I experimented with compiling the latest SDL-Hercules-390 source, from github, and replacing tk4-'s hercules bin, lib and share files.
 

 I notice that SDL-Hercules has dyn76 whereas tk4- has dyn75 so I guess I can't just drop SDL hercules into tk4- like that and expect it to work.
 I am seeing a FTPD - ABEND S0C1 U0000 when I try to connect my ftp client.
 

 If I use a clean install of tk4- then I don't have any problems.
 

 Thanks again
 PJ
 

---In [email protected], <winkelmann@...> wrote :

 Hi PJ
 

 well, the default _is_ to listen on all IP addresses. The most probable cause of your observation is that you have an ftp daemon running on your host system… in which case, however, the MVS FTPD would terminate with a bind error.
 

 Btw.: The bind is triggered from the MVS FTP daemon, the source of which can be found in JCC.TCPIP.SRC(FTPD). The actual bind is then performed in the Hercules source tcpip.c. I don't recommend to ever change tcpip.c -- unless you know exactly what you are doing you'll almost certain break Hercules when changing tcpip.c.
 

 Cheers
 Jürgen

---In [email protected], <patrick.sunderland@...> wrote :

 Hi,
 

 Does anyone know if it is possible to configure the binding address for ftpd in hercules (4) and TK4-?
 

 I start ftpd with:
  /start ftpd,srvport=21
 

 It then appears to be listening on localhost, port 21 (127.0.0.1)
 I am trying to find a way to have it listen on all ips, i.e. '0.0.0.0', port 21
 

 If not maybe anyone knows where in the Hercules source code the binding happens?
 

 Many thanks,
 

 PJ Sunderland.