タグ

ipに関するupamuneのブックマーク (2)

  • 通信系のデバッグには Charles が便利 - Qiita

    はじめに Charles を使うと PC 上に HTTP プロキシを立てて端末の通信をキャプチャし、リクエストやレスポンスの内容を覗いたり書き換えることが出来る。類似のソフトウェアとして Wireshark や Fiddler, Paros がある。 アプリの開発をしていてよくあるのは、APIがスタブで固定値しか返してくれない、異常系エラーのデバッグがやりづらい、という場面だが、Charles なら通信を好きに値を書き換えられるのでこれらに簡単に対処することができる。 Charles は Java アプリなので OS X だけでなく WindowsLinux でも利用する事が出来る。稿では OS X + iOS での利用を前提として Charles の導入から簡単な使い方までを説明するが、環境依存の箇所は適宜読み替えてほしい。 導入 来は有料ライセンスだが、無料でも数分間だけ使用

    通信系のデバッグには Charles が便利 - Qiita
  • Remote IP Address with Go

    We need remote ips Yesterday I was tasked with figuring out how to properly ascertain remote web client IP Addresses in our golang web services. This sounds like a stupidly easy exercise, and golang MUST have a fancy utility for this right? Nope. Turns out getting the remote IP Address is really hard. The naïve approach Within the golang net.Request structure there is a RemoteAddr attribute, which

  • 1