extremeheat / node-raknet-native

Simple native RakNet bindings for Node.js
13 stars 5 forks source link

IPv6 binding causes errors on Linux #4

Open extremeheat opened 2 years ago

extremeheat commented 2 years ago

Unknown bind__ errors. Can we disable IPv6 by default without an option?

Related https://github.com/PrismarineJS/bedrock-protocol/issues/120

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

theoparis commented 7 months ago

Hi there. I have forked raknet under my codeberg.org account and I am looking to try and write an open source minecraft server in C++. I came across this issue as it seems to be a raknet issue 🤔 I don't think it should be disabled completely as ipv4 becomes more and more expensive to use (AWS is already charging for v4 addresses as an example, a entire subnet of v6 addresses is free).

Upon further investigation I noticed there is a RAKNET_SUPPORT_IPV6 macro that needs to be set along with including the netdb.h include header on Linux. There were also a lot of other compilation errors that I got when I enabled ipv6 support. However I seem to have fixed it now. See https://codeberg.org/flowtr/raknet/commit/ead248692c3fa8b0968c0f8dba9f28038d4335c2#diff-25c4f7ad10e5d7f619c884adf3d6cb10d0d595b7 and the other commits.