Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error When Port Forwarding #70

Open
monomycelium opened this issue Jun 28, 2022 · 0 comments
Open

Error When Port Forwarding #70

monomycelium opened this issue Jun 28, 2022 · 0 comments

Comments

@monomycelium
Copy link

I have a home Raspberry Pi, which I use as a NAS. The brilliantly-designed FDT is supercharged for transferring large files. Occasionally, I need to access those files when I am outside, using my Macintosh. I set up port forwarding for the ports 54321 and 43210 since I've noticed FDT uses them. However, the FDT server starts and stops with errors on my Raspberry Pi.

2022-06-28 17:37:46 INFO lia.util.net.copy.FDT main 

FDT [ 0.26.3-202103312247 ] STARTED ... 


2022-06-28 17:37:46 INFO lia.util.net.common.Config <init> Using lia.util.net.copy.PosixFSFileChannelProviderFactory as FileChannelProviderFactory
2022-06-28 17:37:46 INFO lia.util.net.common.Config <init> FDT started in server mode
2022-06-28 17:37:46 INFO lia.util.net.copy.FDT main FDT uses *blocking* I/O mode.
2022-06-28 17:37:46 WARNING lia.util.net.copy.FDT main Failed to instantiate FDT
java.net.BindException: Address already in use
	at java.base/sun.nio.ch.Net.bind0(Native Method)
	at java.base/sun.nio.ch.Net.bind(Net.java:459)
	at java.base/sun.nio.ch.Net.bind(Net.java:448)
	at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
	at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:80)
	at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:73)
	at lia.util.net.copy.FDTServer.<init>(FDTServer.java:67)
	at lia.util.net.copy.FDT.<init>(FDT.java:101)
	at lia.util.net.copy.FDT.main(FDT.java:467)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at lia.util.net.copy.FDTMain.main(FDTMain.java:55)

What ports should I set up for port forwarding? Should I enable mapping? Should I allow both the TCP and UDP protocols? I would appreciate any help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant