erwincoumans / enet Goto Github PK
View Code? Open in Web Editor NEWenet NAT punchthrough test
enet NAT punchthrough test
enet NAT punchthrough test MIT License BUILD instructions Windows: click on build/vs2010.bat and build the solution in build/vs2010 Linux: in a terminal, cd build, ./premake_linux gmake, cd gmake, make Mac OSX: same as Linux or click on build/xcode4.command and open build/xcode4 using Xcode Usage: Run the server, located in the bin folder (Test_enet_server*) Run the client twice, located in the bin folder (Test_enet_client*) The server will exchange the addresses and the clients will directly connect to eachother and send messages See also the discussion here: http://lists.cubik.org/pipermail/enet-discuss/2013-May/thread.html#2163
Hi, I got this test with linux and win7 versions. I only got successful on both local windows and linux (32bit guest os). It seems all can connect through, but with remote 64bit linux I'm getting a client natpeer failure.
Ubuntu 14.04 LTS (32bit)
Ubuntu 14.04 LTS (64bit remote)
Windows 7 64bit
-Server Results (ALL 3 w/ windows client)-
starting enet dedicated server
A new client connected from x.x.x.x:x.
A new client connected from x.x.x.x:x.
exchanging addresses for NAT punchthrough
-Client Results-
(64bit Linux Server)
A packet of length 8 containing ┤┐î╗É┐ was received from (null) on channel 0.
received other client's address from server, connecting...
Connection to natpeer failed.
(32bit Linux Server)
A packet of length 8 containing └¿8☺X♦ was received from (null) on channel 0.
received other client's address from server, connecting...
Connection to natpeer succeeded.
A new client connected from 138a8c0:1112.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
(Windows Server)
A packet of length 8 containing � was received from (null) on channel 0.
received other client's address from server, connecting...
Connection to natpeer succeeded.
A new client connected from 100007f:1112.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
A packet of length 10 containing packetfoo was received from Client information on channel 0.
Any ideas? Thanks.
As referenced here: #1 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.