LoginSignup
1
1

More than 5 years have passed since last update.

ASP.netでIPアドレスを取得する際の疑問点

Posted at

参考記事
https://qiita.com/Tood/items/be684ec66c80b1d9b04a

ASP.NET MVCで上記の方法でクライアントのIPアドレスを取得した際の疑問点についてまとめる

疑問点

・デバッガーなどのローカル環境で行う場合::1の値で取得される
 (まぁ実際にはそんなことはほぼ起こりえない為問題はないだろう)
・社内開発サーバにモジュールをアップし、実行した場合IPは保存されるがローカルIPで保存される。
・グローバルIPで取得できないか、社外サーバの場合はグローバルIPになるか確認が必要

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1