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

Add UPnP port forwarding #11

Open
RevenantX opened this issue Nov 4, 2016 · 11 comments
Open

Add UPnP port forwarding #11

RevenantX opened this issue Nov 4, 2016 · 11 comments

Comments

@RevenantX
Copy link
Owner

RevenantX commented Nov 4, 2016

For now you can use https://github.com/lontivero/Open.NAT

@miketheprogrammer
Copy link

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.

@levonravel
Copy link

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.

@RogyDev
Copy link

RogyDev commented Jul 7, 2019

Link not working : (

@levonravel
Copy link

levonravel commented Jul 7, 2019

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)

@RogyDev
Copy link

RogyDev commented Aug 14, 2019 via email

@RogyDev
Copy link

RogyDev commented Aug 15, 2019

I test it but always say "No network adapters with an IPv4 address in the system!".
any fix plz ?

@levonravel
Copy link

let me rework it a bit and repost the code.

@levonravel
Copy link

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.

@RogyDev
Copy link

RogyDev commented Dec 24, 2019

it's working good, thanks.

@levonravel
Copy link

it's working good, thanks.

your welcome.

@shekit
Copy link

shekit commented Apr 20, 2021

@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?

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

No branches or pull requests

5 participants