Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1 KB

stun.md

File metadata and controls

48 lines (31 loc) · 1 KB

Stun Cheatsheet

Andrew Pennebaker

https://github.com/mcandre/cheatsheets/blob/master/stun.md

About

Stun is a protocol for robustly querying network information such as IP addresses, even through NAT and proxies.

Documentation

Wikipedia: STUN Public STUN server list

Install

$ apt-get install stun

$ brew install stuntman

stunserver_win32_1_2_5a.zip

Basic Usage

$ stunclient <stun-server>

Example:

$ stunclient stun.ekiga.net
stunclient stun.ekiga.net
Binding test: success
Local address: 192.168.100.121:56531
Mapped address: 107.48.201.7:56531

In other words, stunclient returns the internal IP address, as well as the external (global) IP address, of the host computer.

Alternatives