Take the 2-minute tour ×

I want to use bottle.py over a wireless network. Unfortunately I do not know how to go about setting this up. The code I want to execute over a wireless network (Execute from another computer) is:

import ctypes
from bottle import get, post, request, run

def message():
    return '''<form method='POST' action='/control'>
        <input name='message'   type='text'/>
        <input type='submit'/>

def send():
    Message  =request.forms.get('message')
    MessageBox = ctypes.windll.user32.MessageBoxA
    MessageBox(None,Message,'MESSAGE', 0)

run(host=, port=8090)
share|improve this question
I've adjusted the indentation to what would actually make sense. You are allowed to edit your own post and if you can improve it then I encourage you to do so. –  James Khoury Aug 29 '12 at 0:21
It doesnt kill my eyes now, thanks James :) –  tmg Aug 29 '12 at 1:08
add comment

1 Answer

And to answer question - are you sure you want to bind it only @ 127? What I mean - 127.0... is localhost... try or the IP

share|improve this answer
add comment

Your Answer


