python - Connecting to STUN returned External IP address -



python - Connecting to STUN returned External IP address -

i trying connect webserver behind nat listening @ port 4000.

on webserver, using pystun (https://github.com/jtriley/pystun) , command:

$ pystun -p 4000

i have returned value of

nat type: symmetric nat external ip: <ip> external port: 1024

but when seek access http://:1024, not able connet , stuck @ waiting response.

is right way of using stun?

your nat has opened port (punched hole) only for stun server has seen outgoing packet stun while have run "pystun". when trying somewhere else reach webserver, packet unknown nat. nat silently discarding incoming packets.

note that, event though getting external port nat while communicating stun server, because of it's symmetric type, port alter other random port while 4 tuple (src-address, src-port, dst-sddress, dst-port) changes.

python stun nat-traversal

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -