30 July 2015

STUN


STUN
STUN (Session Traversal Utilities for NAT) is a standardized set of methods and a network protocol to allow an end host to discover its public IP address if it is located behind a NAT. It is used to permit NAT traversal for applications of real-time voice, video, messaging, and other interactive IP communications. It is documented in RFC 5389. The STUN URI scheme is documented in RFC 7064. STUN is intended to be a tool to be used by other protocols, such as ICE.


Stun client:
A Python STUN client for getting NAT type and external IP


Instalasi dan operasi:

hSammir@hSammir-PC ~
$ pip install pystun
You are using pip version 6.0.8, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pystun
  Downloading pystun-0.1.0.tar.gz
Installing collected packages: pystun
  Running setup.py install for pystun
    Installing pystun script to /usr/bin
Successfully installed pystun-0.1.0

hSammir@hSammir-PC ~
$ pystun
NAT Type: Full Cone
External IP: 36.68.30.220
External Port: 11005

hSammir@hSammir-PC ~
$ pystun -H stun.bahnhof.net -P 3478
NAT Type: Full Cone
External IP: 36.68.30.220
External Port: 11196

Daftar stun server publik:

Cross check dengan https://www.whatismyip.com/

No comments:

Post a Comment