Solved

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

Posted on 2016-08-14
4
78 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 91

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 91

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 91

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

932 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now