Solved

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

Posted on 2016-08-14
4
69 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 90

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 90

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 90

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

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
LAN or WAN ? 11 66
reserve ip based on mac addresses 6 73
svg file 10 41
Firewall port opening 2 25
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
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…

762 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

19 Experts available now in Live!

Get 1:1 Help Now