GithubHelp home page GithubHelp logo

enet's Introduction

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

enet's People

Contributors

erwincoumans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

enet's Issues

Natpeer failed on 64-bit Linux

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.