LoginSignup
1
3

More than 5 years have passed since last update.

スマホからMacのローカルサーバーに接続する方法

Last updated at Posted at 2017-10-27

テスト用のサーバーが出来上がってない状態でスタブサーバーをローカルに設置してテストする方法

  1. 同じ無線ネットワークならなんの設定もなくローカルにLAMP環境を作って
    $ifconfig こちらで表示されるIPで接続可能になる。

  2. 同じ無線ネットワークを利用出来ない場合、データケーブルで繋いでやる方法
    ■ アプリケーション>システム環境設定>ネットワークをクリック
    スクリーンショット 2017-10-27 10.33.28.png

■ ネットワークの中の「iPhone USB」をクリック
スクリーンショット 2017-10-27 10.26.22.png

■ IPv4の設定を「DHCPサーバーを使用」を選択
スクリーンショット 2017-10-27 10.26.52.png

スマホから上記のIPアドレスでサーバー接続可能

1
3
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
3