Solved

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

Posted on 2016-08-14
4
87 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
  • 3
4 Comments
 
LVL 94

Assisted Solution

by:John Hurst
John Hurst 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 94

Accepted Solution

by:
John Hurst 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 94

Expert Comment

by:John Hurst
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
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…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

828 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