Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Stun Client

Standard Stun client (RFC 5389) implementation in Java

Usage

Create a reusable StunClient object

StunClient client = new StunClient("stun.l.google.com", 19302);
                     // or new StunClient(stunInetAddress, port);

Execute a request to the stun server

StunResponse response = client.request();

// StunResponse{type=Ipv4, address=/...51.1..7.225, port=13474}

InetAddress address = response.address;
int port = response.port;
boolean isIpv4 = response.type == StunResponse.TYPE_IPV4;

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages