Detect nat type with docker command in linux
3.0K
Detect nat type with docker command in linux, support amd64, arm32, arm64
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" ]
docker run -it --rm --network=host smilence86/pystun
NAT Type: Full Cone
External IP: xxx.xxx.xxx.xxx
External Port: 54320
or
NAT Type: Blocked
External IP: None
External Port: None
Content type
Image
Digest
Size
32.9 MB
Last updated
over 4 years ago
docker pull smilence86/pystun