Skip to content

Commit

Permalink
Add Server file
Browse files Browse the repository at this point in the history
  • Loading branch information
diaa-woo committed Jul 21, 2023
1 parent 788fd54 commit a4b8d1d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from flask import Flask
import subprocess

app = Flask(__name__)

@app.route('/')
def index():
return "뭐"

if __name__ == '__main__':
wlan_address = subprocess.check_output(["hostname", "-I"]).decode().split()[0] # hostname -I를 통해 파악 후, 상황에 따라 인덱스 값 변경
app.run(host=wlan_address, debug=True)

0 comments on commit a4b8d1d

Please sign in to comment.