LiteNetLib
LiteNetLib copied to clipboard
Add UPnP port forwarding
For now you can use https://github.com/lontivero/Open.NAT
I think it would be smart to keep it modular. We can provide a best practices document for implementing Open.NAT with LiteNetLib. This leads leads to better code for both the person implementing litenetlib and the authors maintaining litenetlib.
I wrote a Upnp solution for unity awhile back but.. I was just learning about it at the time it works with 80 percent of routers china brands have some issues.. https://hastebin.com/utimagavuc.cs here is the code maybe you can get an idea from it.
Link not working : (
Link not working : (
https://pastebin.com/tYFctzdM
public static void Discover(int port, NetSocket socket) <--- Remove NetSocket socket then fire Discovery(port you want to open)
thanks
On Sun, Jul 7, 2019 at 8:08 PM Levon Ravel [email protected] wrote:
Link not working : (
https://pastebin.com/tYFctzdM
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/RevenantX/LiteNetLib/issues/11?email_source=notifications&email_token=AKJNX52XOZDFENG57QQWYIDP6I5K3A5CNFSM4CVGTGM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZLRIVA#issuecomment-509023316, or mute the thread https://github.com/notifications/unsubscribe-auth/AKJNX55DXAT4PJZWPAFT7GLP6I5K3ANCNFSM4CVGTGMQ .
I test it but always say "No network adapters with an IPv4 address in the system!". any fix plz ?
let me rework it a bit and repost the code.
I test it but always say "No network adapters with an IPv4 address in the system!". any fix plz ?
https://pastebin.com/wLUcLgvx took the throw out of the loop and changed the calls a bit.
it's working good, thanks.
it's working good, thanks.
your welcome.
@RevenantX any chance you are looking to explore a full time opportunity? I'm the founder of a gaming startup, really like what you've been doing with litenetlib. We're looking to add an experienced multiplayer engineer to our team. Are you open to chatting?