How can I get GoAnywhere to listen on IPv4 instead of IPv6 addresses?

View some of the Frequently Asked Questions to our support staff. Included are some tips and tricks making this forum ideal for users getting started with GoAnywhere MFT. Note: Users can reply to existing topics but only our support staff can add new topics to this forum.
1 post Page 1 of 1

Support_Josh

User avatar
Posts: 12
Joined: Thu Feb 16, 2017 11:20 am

Post by Support_Josh » Wed Aug 23, 2017 4:02 pm
Question:
Why don't we see the administrator ports binding to the IPv4 interface? We believe we have this configured correctly, but the admin ports are only binding to the IPv6 interface:
[root@goanywhere-mft ~]# netstat -na | grep -i listen
tcp6 0 0 :::8000 :::* LISTEN
tcp6 0 0 :::8001 :::* LISTEN
tcp6 0 0 127.0.0.1:8005 :::* LISTEN

Answer:
The IP version preferences for GoAnywhere are directly obtained from Java. GoAnywhere is binding to IPv6 over IPv4 because the Java that GoAnywhere is running on is preferring IPv6 over IPv4. To override this setting, follow these steps:
Windows:
1. Navigate to the GoAnywhere’s [Installation directory]\tomcat\bin folder and run GoAnywherew.exe as administrator.
2. NOTE: This may also be GoAnywhereServicesw.exe if MFT was previously a GoAnywhere Services instance.
3. In the menu that appears, click into the Java tab and insert the following at the end of the Java Options field:
-Djava.net.preferIPv4Stack=true
4. Click Apply and OK.
5. Restart the GoAnywhere service for the changes to take effect.

Linux/Unix and AS400:
1. Navigate to the GoAnywhere’s [Installation directory]/tomcat/bin folder and edit the start_tomcat.sh file.
2. Add '-Djava.net.preferIPv4Stack=true' to the JAVA_OPTS section at the beginning of the file.
NOTE: The option line should look similar to this:
JAVA_OPTS='-Xmx1024m -XX:MaxPermSize=256m -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -XX:-UseVMInterruptibleIO'
3. Save the file.
4. Restart the GoAnywhere service/subsystem for the changes to take effect.
Joshua Przybysz
Senior Support Analyst
e. [email protected]
p. 1.800.949.4696
w. HelpSystems.com
1 post Page 1 of 1