Solved

How does the STUN server helps discover the device public ip address

Posted on 2016-08-14
4
100 Views
Last Modified: 2016-08-31
HI,
Here is my understanding of STUN.
Device A which is behind NAT wants to discover its public ip address so sends a request to STUN server.

A->B->C->D (public ip) -> E->F->G->STUN server
So the request flows till D which is last router having private ip address with a WAN facing public ip address.
When one says about discovering its public ip address i think this ip of Device D is what we are talking about.
Now the request flow through several machines on internet E , F and G and finally lands on the public STUN server.

what i understand is the Packet that stun server recieves will only have info that it came from G ??
So as per that how does STUN server knows that it has to send the public ip (of D) in the response ?

Please clarify. I know my understanding has gaps somewhere....

Thanks
0
Comment
Question by:Rohit Bajaj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 96

Assisted Solution

by:Experienced Member
Experienced Member earned 500 total points
ID: 41755445
A STUN sever is used primarily for VOIP, otherwise it is not generally needed or used.
0
 

Author Comment

by:Rohit Bajaj
ID: 41755941
Hi,
But i guess its main use there also will be to find out the public ip address of the host.
So my question basically is how does the public ip of the host reaches the STUN.
Where is this public ip stored in the packet transfer ?

Even if it was not  STUN server  but some other public server say X. Will then also X will know the public ip of host ?
0
 
LVL 96

Accepted Solution

by:
Experienced Member earned 500 total points
ID: 41756163
I have never seen a STUN on any local machine (think also of all my clients).

The TCP/IP packet contains the IP information about Target and Host.   This is what TCP/IP does.

Run Wireshark (I use CommView) to look at packets and what they contain.
0
 
LVL 96

Expert Comment

by:Experienced Member
ID: 41774580
@Rohit Bajaj - A STUN server is not used everywhere and has application where I suggested. Do you need more information to close this question
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question