Sign inSign up

smilence86/pystun

By smilence86

Updated over 4 years ago

Detect nat type with docker command in linux

Image
1

3.0K

smilence86/pystun repository overview

description

Detect nat type with docker command in linux, support amd64, arm32, arm64

Dockerfile

FROM python:2-alpine

RUN apk add --no-cache git

WORKDIR /usr/src/app

RUN git clone https://github.com/jtriley/pystun.git

RUN cd pystun && python setup.py install

CMD [ "sh", "-c", "echo '\n\nDetecting, please wait a moment...\n'; pystun" ]

usage

docker run -it --rm --network=host smilence86/pystun

output

NAT Type: Full Cone
External IP: xxx.xxx.xxx.xxx
External Port: 54320

or

NAT Type: Blocked
External IP: None
External Port: None

Tag summary

Content type

Image

Digest

Size

32.9 MB

Last updated

over 4 years ago

docker pull smilence86/pystun