Share

STUN Client and Server library

Code

Programming Languages: C++

License: Vovida Software License 1.0

Show:

What's happening?

  • Wrong Attribute: SOURCE-ADDRESS

    Problem occures when then server receives a message on the alternate ip. The port on which it sends the message is ok; but the field in the SOURCE-ADDRESS is wrong. I have tested this on some public servers with twinkle as a client. I have attached a wireshark output; see frame 18 (line 296 and line 280): Src Port: stun (3478) as reported by wireshark and is correct behavior Port...

    2009-08-28 10:03:49 UTC by rpistolea

  • [PATCH] Client hangs if no answer comes from the se

    This patch, applied to udp.cxx, solves issue 2219800 (Client hangs if no answer comes from the server). It uses a fixed 10 seconds timeout.

    2009-04-22 23:22:41 UTC by nobody

  • Client hangs if no answer comes from the server

    I'm using the stun client to monitor public IP changes in a modem-router. I found that if no answer arrives from the stun server, the client "hangs" inside getMessage() in udp.cxx. The reason is this function calls recvfrom() to wait INDEFINITELY for the packet from the server. I believe a "reasonable" timeout should be used in this function. What do you think? Do you want me to introduce the...

    2008-11-04 01:54:31 UTC by nobody

  • Comment: compilation error: stun.cxx:681:7: error: #error Need some w

    I have the same problem. :(.

    2008-07-11 01:02:43 UTC by nobody

  • Comment: compilation error: stun.cxx:681:7: error: #error Need some w

    I have same problem in Fedora 9(2.6.25.6-55.fc9.x86_64) Does anyone know how to solve it at x86_64 bit Fedora OS? Thanks a lot! ------------------------------------------------------- g++ -c -g -O -Wall server.cxx -o server.o g++ -c -g -O -Wall stun.cxx -o stun.o stun.cxx:681:7: error: #error Need some way to seed the random number generator stun.cxx: In function ‘int...

    2008-07-05 13:25:55 UTC by nobody

  • Example or other open source program using stun?

    Hi, I'd like to use stun in my program (P2P). But I'm not sure how to use it. Is there any source code which is showing how to send some data (per UDP) to someone other (behind NAT)? It would help. Otherwise I found something funny: When I trying to run test 0 with the stun client it always fails except if I run test 100 before than it works. Why? Thanks.

    2007-11-02 12:22:55 UTC by nobody

  • Comment: -p option not working in stun client

    sorry the problem does not lie there as first expected. Actually an extra argument which takes the server port is what is needed. I might make the patch myself it i get the time to do it. Problem is that e.g. google stun servers are at port 19302 and is not possible to use them when server port is hardcoded to 3784.

    2007-08-28 14:32:16 UTC by hanssonj

  • -p option not working in stun client

    Hardcoded value of port used instead of STUN_PORT Line number 969 in stun.cxx Please fix.

    2007-08-28 09:05:46 UTC by hanssonj

  • Comment: compilation error: stun.cxx:681:7: error: #error Need some w

    I too had the same error on a 64bit CPU with 64bit Fedora Linux OS. > make g++ -c -g -O -Wall server.cxx -o server.o g++ -c -g -O -Wall stun.cxx -o stun.o stun.cxx:681:7: error: #error Need some way to seed the random number generator stun.cxx: In function 'int stunRand()': stun.cxx:683: warning: 'tick' is used uninitialized in this function make: *** [stun.o] Error 1 > uname -a...

    2007-06-07 20:53:42 UTC by korstad

  • Comment: compilation error: stun.cxx:681:7: error: #error Need some w

    Acknowledging this report. I'll see if someone can look at it on our x86_64 PLATFORMS.

    2007-04-04 16:44:37 UTC by ahawrylyshen