1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ローカルアプリをローカルサーバで立ち上げてみんなで接続する

Last updated at Posted at 2023-09-16

はじめに

そういえば世界に公開しないようなローカルアプリケーションを仕事仲間だけで動かしたいときってどうやるの?ってなって情報探してみたら思っていたほど情報がなかったのでメモする。びびるぐらい簡単だった

IPを調べよう

ローカルipを調べて、そのipを指定してサーバを立ち上げる

PS C:\Users\yoshi> ipconfig
  Wireless LAN adapter Wi-Fi:
  IPv4 アドレス . . . . . . . . . . . .: 192.168.XXX.43
  
soil_analysis> python manage.py runserver 192.168.XXX.43:8080
  Django version 4.2.2, using settings 'config.settings'
  Starting development server at http://192.168.XXX.43:8080/
  Quit the server with CTRL-BREAK.

スマホからつないでみよう!

みんなで同じwi-fi(今回はレオパのwifi)に接続する
image.png

ブラウザにip直打ちであっさり接続できる:laughing:
もちろんPCからも同じ
image.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?