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

To make peer reached from outside, is there any alternative to manually cancelling firewall? #634

Open
RuikangSun opened this issue Apr 8, 2024 · 4 comments
Labels
enhancement Indicates new feature requests or improvement for existing functionality network

Comments

@RuikangSun
Copy link

To make peer reached from outside, the only solution now is manually cancelling firewall of 8090 port. However, in some cases (especially home PCs), only ISP super administrators are privileged to edit firewall settings. Technically, users can use servers or change ISP. But these methods are inconvenient, which may make yacy network weaker.
Another successful P2P network is bittorrent. Users of bittorrent are not required to edit firewall settings. Instead, bittorrent uses NAT hole punching to make peers connected across firewalls.
Concerning yacy network is partially based on senior and principal peers, to make peer reached from outside, is there any alternative to manually cancelling firewall?

@okybaca okybaca added the enhancement Indicates new feature requests or improvement for existing functionality label Apr 15, 2024
@okybaca
Copy link
Contributor

okybaca commented Apr 15, 2024

There is a workaround using ssh tunneling in a case you have access to some ssh account on a server in public internet.
But, definitely, piercing a firewall in a way bittorrent does would be a huge improvement. Do you have any idea, how BT does that?

@RuikangSun
Copy link
Author

There is a workaround using ssh tunneling in a case you have access to some ssh account on a server in public internet. But, definitely, piercing a firewall in a way bittorrent does would be a huge improvement. Do you have any idea, how BT does that?

Here is a discussion:
[How does BitTorrent work with only outbound connections?](https://superuser.com/questions/104462/how-does-bittorrent-work-with-only-outbound-connections)

@okybaca
Copy link
Contributor

okybaca commented Apr 15, 2024 via email

@RuikangSun
Copy link
Author

I am not familiar with Java, but it looks not THAT difficult:
Java hole punching
Java STUN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests or improvement for existing functionality network
Projects
None yet
Development

No branches or pull requests

2 participants