看板 Programming 關於我們 聯絡資訊
假設我ip:111.111.111.111要傳資料到 ip:222.222.222.222下的192.168.2.2 這樣要怎麼達成? 像skype之類的通訊軟體那樣. -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.40.180.11 ※ 文章網址: https://www.ptt.cc/bbs/Programming/M.1464937308.A.4D3.html
IKAFIRE: port forwarding 223.140.48.129 06/03 15:25
testPtt: 希望不改router設定(skype也沒要user改) 114.40.180.11 06/03 15:36
LPH66: 裡面先出來外面再用那條出來的連線傳進去 140.112.30.51 06/03 15:52
LPH66: skype 之類的會有一個中繼伺服器 140.112.30.51 06/03 15:53
LPH66: 大家都先連進去, 之後就藉由那個伺服器中轉 140.112.30.51 06/03 15:53
LPH66: http://tinyurl.com/yknz6ny 可看這條維基 140.112.30.51 06/03 15:54
CCWck: NAT轉址 通訊埠轉發 122.146.84.72 06/03 18:01
ripple0129: Skype軟體是他家的,當然客戶端能連se223.136.135.116 06/03 22:04
ripple0129: rver,你如果是外網要連別人家內網,223.136.135.116 06/03 22:04
ripple0129: 他router沒設定好mapping或DMZ你就沒223.136.135.116 06/03 22:04
ripple0129: 辦法連上223.136.135.116 06/03 22:04
tjjh89017: UPnP 140.115.53.26 06/03 22:26
tjjh89017: 或是用P2P的方式吧~ 140.115.53.26 06/03 22:26
testPtt: 看來沒辦法硬塞 1.175.178.35 06/03 23:37
IKAFIRE: 不改router的話用hamachi之類的東西呢 140.112.187.97 06/04 00:30
ripple0129: 不改router的前提就是內網先往外連,223.137.106.250 06/05 20:18
ripple0129: 做個小程式每一段時間內網往外網看有223.137.106.250 06/05 20:18
ripple0129: 無新訊息吧223.137.106.250 06/05 20:18
littleshan: 這有專門解法,叫NAT-punchthrough 60.250.32.97 06/06 14:49
littleshan: https://goo.gl/3XddOu 60.250.32.97 06/06 14:49
littleshan: 對大部份的NAT router來說 60.250.32.97 06/06 14:50
littleshan: 外部的中繼伺服器通常只需要handshake 60.250.32.97 06/06 14:50
littleshan: 之後的資料傳輸是可以point-to-point 60.250.32.97 06/06 14:51
yzfr6: 你說的這情況叫 NAT 198.56.238.205 07/29 08:38