{"id":3098,"date":"2025-03-31T12:13:14","date_gmt":"2025-03-31T03:13:14","guid":{"rendered":"https:\/\/www.spread1.co.jp\/wp\/?p=3098"},"modified":"2025-03-31T16:56:00","modified_gmt":"2025-03-31T07:56:00","slug":"post-3098","status":"publish","type":"post","link":"https:\/\/www.spread1.co.jp\/wp\/post-3098\/","title":{"rendered":"[WebRTC]Turn\u30b5\u30fc\u30d0\u306e\u5229\u7528\u304c\u5fc5\u9808\u306e\u72b6\u6cc1\u3092\u30c6\u30b9\u30c8\u3059\u308b"},"content":{"rendered":"\n<p>WebRTC (Web Real-Time Communication) \u306f\u3001\u30d6\u30e9\u30a6\u30b6\u9593\u3067\u306e\u30d3\u30c7\u30aa\u3001\u30aa\u30fc\u30c7\u30a3\u30aa\u3001\u30c7\u30fc\u30bf\u901a\u4fe1\u3092\u53ef\u80fd\u306b\u3059\u308b\u6280\u8853\u3067\u3059\u304c\u3001NAT (Network Address Translation) \u3084\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u5f71\u97ff\u3067\u3001\u901a\u4fe1\u304c\u76f4\u63a5\u78ba\u7acb\u3067\u304d\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u306b TURN (Traversal Using Relays around NAT) \u30b5\u30fc\u30d0\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001WebRTC \u306e\u901a\u4fe1\u306b\u304a\u3044\u3066 TURN \u30b5\u30fc\u30d0\u306e\u5229\u7528\u304c\u5fc5\u9808\u3068\u306a\u308b\u72b6\u6cc1\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3057\u3001\u30c6\u30b9\u30c8\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. WebRTC \u306e\u57fa\u672c\u7684\u306a\u63a5\u7d9a\u30d5\u30ed\u30fc<\/h2>\n\n\n\n<p>WebRTC \u306e\u63a5\u7d9a\u306f\u4ee5\u4e0b\u306e\u6d41\u308c\u3067\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"1\">\n<li><strong>\u30b7\u30b0\u30ca\u30ea\u30f3\u30b0<\/strong>: Peer \u9593\u3067 SDP (Session Description Protocol) \u3092\u4ea4\u63db\u3002<\/li>\n\n\n\n<li><strong>ICE (Interactive Connectivity Establishment) \u5019\u88dc\u306e\u4ea4\u63db<\/strong>: STUN \/ TURN \u30b5\u30fc\u30d0\u3092\u5229\u7528\u3057\u3066\u901a\u4fe1\u53ef\u80fd\u306a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7d4c\u8def\u3092\u63a2\u7d22\u3002<\/li>\n\n\n\n<li><strong>\u30d4\u30a2\u63a5\u7d9a\u306e\u78ba\u7acb<\/strong>: \u6700\u9069\u306a\u901a\u4fe1\u7d4c\u8def\u3092\u9078\u629e\u3057\u3001\u30c7\u30fc\u30bf\u901a\u4fe1\u958b\u59cb\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u901a\u5e38\u3001STUN \u30b5\u30fc\u30d0\u304c\u5229\u7528\u53ef\u80fd\u3067\u3042\u308c\u3070\u76f4\u63a5\u901a\u4fe1 (P2P) \u3067\u304d\u307e\u3059\u304c\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3084\u5bfe\u79f0\u578b NAT \u306e\u5f71\u97ff\u3067\u76f4\u63a5\u901a\u4fe1\u304c\u56f0\u96e3\u306a\u5834\u5408\u306f\u3001TURN \u30b5\u30fc\u30d0\u3092\u4ecb\u3057\u305f\u30ea\u30ec\u30fc\u901a\u4fe1\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. TURN\u30b5\u30fc\u30d0\u304c\u5fc5\u9808\u3068\u306a\u308b\u30b1\u30fc\u30b9<\/h2>\n\n\n\n<p>TURN\u30b5\u30fc\u30d0\u304c\u5fc5\u9808\u3068\u306a\u308b\u72b6\u6cc1\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5bfe\u79f0\u578bNAT (Symmetric NAT)<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u9001\u4fe1\u5143IP\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u304c\u5909\u5316\u3059\u308b\u305f\u3081\u3001STUN\u306b\u3088\u308b\u30a2\u30c9\u30ec\u30b9\u691c\u51fa\u304c\u4e0d\u53ef\u80fd\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u53b3\u683c\u306a\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb<\/strong>\n<ul class=\"wp-block-list\">\n<li>UDP\u901a\u4fe1\u3092\u3059\u3079\u3066\u30d6\u30ed\u30c3\u30af\u3059\u308b\u74b0\u5883\u3002<\/li>\n\n\n\n<li>\u6307\u5b9a\u30dd\u30fc\u30c8\u4ee5\u5916\u306e\u901a\u4fe1\u3092\u8a31\u53ef\u3057\u306a\u3044\u30dd\u30ea\u30b7\u30fc\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u4f01\u696d\u30cd\u30c3\u30c8\u30ef\u30fc\u30af \/ \u516c\u5171Wi-Fi<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7ba1\u7406\u8005\u304cP2P\u901a\u4fe1\u3092\u5236\u9650\u3057\u3066\u3044\u308b\u5834\u5408\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">3. TURN\u30b5\u30fc\u30d0\u306e\u5229\u7528\u304c\u5fc5\u9808\u306e\u72b6\u6cc1\u3092\u30c6\u30b9\u30c8\u3059\u308b<\/h2>\n\n\n\n<p>WebRTC\u3092\u7528\u3044\u305f\u30a2\u30d7\u30ea\u958b\u767a\u306b\u304a\u3044\u3066TURN\u30b5\u30fc\u30d0\u304c\u5fc5\u9808\u306e\u72b6\u6cc1\u4e0b\u3067\u306e\u30c6\u30b9\u30c8\u3092\u5b9f\u65bd\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br>STUN\/TURN\u30b5\u30fc\u30d0\u304c\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306a\u3069\u3092\u4f7f\u7528\u3057\u3066\u3044\u3066\u30b5\u30fc\u30d0\u30b5\u30a4\u30c9\u3067\u306e\u5236\u9650\u304c\u96e3\u3057\u3044\u5834\u5408\u3001\u5f0a\u793e\u3067\u306f\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3092\u7528\u3044\u3066\u30c6\u30b9\u30c8\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u2460 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u8a2d\u5b9a\u306b\u3088\u308aUDP\u30dd\u30fc\u30c8\u3092\u30d6\u30ed\u30c3\u30af\u3059\u308b<br>\u2461 \u7aef\u672b\u306e\u8a2d\u5b9a\u306b\u3088\u308aUDP\u30dd\u30fc\u30c8\u3092\u30d6\u30ed\u30c3\u30af\u3059\u308b<\/p>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a\u3001UDP\u30d9\u30fc\u30b9\u306e WebRTC \u901a\u4fe1\u304c\u5931\u6557\u3057\u3001TURN \u30b5\u30fc\u30d0\u7d4c\u7531\u306e TCP \u901a\u4fe1\u304c\u5f37\u5236\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>WebRTC \u3067\u306f\u3001\u901a\u5e38 UDP \u3092\u4f7f\u7528\u3057\u3066 P2P \u901a\u4fe1\u3092\u78ba\u7acb\u3057\u307e\u3059\u3002UDP \u306f\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u901a\u4fe1\u306b\u9069\u3057\u3066\u304a\u308a\u3001\u30d1\u30b1\u30c3\u30c8\u306e\u9806\u5e8f\u5236\u5fa1\u3084\u518d\u9001\u5236\u5fa1\u304c\u4e0d\u8981\u306a\u305f\u3081\u3001\u4f4e\u9045\u5ef6\u3067\u306e\u901a\u4fe1\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001UDP \u304c\u30d6\u30ed\u30c3\u30af\u3055\u308c\u308b\u3068\u3001WebRTC \u306f TCP \u3092\u7528\u3044\u305f TURN \u30ea\u30ec\u30fc\u7d4c\u7531\u306e\u901a\u4fe1\u3078\u30d5\u30a9\u30fc\u30eb\u30d0\u30c3\u30af\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u52d5\u4f5c\u3092\u5229\u7528\u3057\u3066\u3001TURN \u30b5\u30fc\u30d0\u7d4c\u7531\u306e\u901a\u4fe1\u3092\u5f37\u5236\u3057\u3001\u305d\u306e\u6319\u52d5\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u3055\u3044\u3054\u306b<\/h2>\n\n\n\n<p>\u5f0a\u793e\u3067\u306f\u3001WebRTC\u3092\u6d3b\u7528\u3057\u305f\u958b\u767a\u6848\u4ef6\u3092\u627f\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u97f3\u58f0\u30fb\u6620\u50cf\u901a\u4fe1\u30b7\u30b9\u30c6\u30e0\u306e\u958b\u767a\u306b\u95a2\u3059\u308b\u3054\u76f8\u8ac7\u304c\u3054\u3056\u3044\u307e\u3057\u305f\u3089\u3001<a href=\"https:\/\/www.spread1.co.jp\/contact\/index.php\" target=\"_blank\" rel=\"noopener\" title=\"\">\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0<\/a>\u3088\u308a\u304a\u6c17\u8efd\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WebRTC (Web Real-Time Communication) \u306f\u3001\u30d6\u30e9\u30a6\u30b6\u9593\u3067\u306e\u30d3\u30c7\u30aa\u3001\u30aa\u30fc\u30c7\u30a3\u30aa\u3001\u30c7\u30fc\u30bf\u901a\u4fe1\u3092\u53ef\u80fd\u306b\u3059\u308b\u6280\u8853\u3067\u3059\u304c\u3001NAT (Network Address Translation) \u3084\u30d5\u30a1 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":3138,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46,33],"tags":[45],"class_list":["post-3098","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webrtc","category-33","tag-webrtc"],"_links":{"self":[{"href":"https:\/\/www.spread1.co.jp\/wp\/wp-json\/wp\/v2\/posts\/3098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.spread1.co.jp\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spread1.co.jp\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spread1.co.jp\/wp\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spread1.co.jp\/wp\/wp-json\/wp\/v2\/comments?post=3098"}],"version-history":[{"count":5,"href":"https:\/\/www.spread1.co.jp\/wp\/wp-json\/wp\/v2\/posts\/3098\/revisions"}],"predecessor-version":[{"id":3141,"href":"https:\/\/www.spread1.co.jp\/wp\/wp-json\/wp\/v2\/posts\/3098\/revisions\/3141"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.spread1.co.jp\/wp\/wp-json\/wp\/v2\/media\/3138"}],"wp:attachment":[{"href":"https:\/\/www.spread1.co.jp\/wp\/wp-json\/wp\/v2\/media?parent=3098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spread1.co.jp\/wp\/wp-json\/wp\/v2\/categories?post=3098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spread1.co.jp\/wp\/wp-json\/wp\/v2\/tags?post=3098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}