开发者

Host LAN interface from iPhone/ Mac App

开发者 https://www.devze.com 2023-03-17 01:21 出处:网络
Okay, so what I want to do is be able to control certain aspects of my application from anywhere on a LAN, through a website. Mainly to download log files.

Okay, so what I want to do is be able to control certain aspects of my application from anywhere on a LAN, through a website. Mainly to download log files.

Could anybody point me in the direction I need to be going please.

Basically, the application would be downloaded, then installed. When launched the application would be running, which would also 'host' a web interface, so log files can be downloaded easily on other devices, and simple commands can be sent with html forms.

What I am having a hard time doing is making the os x /ios application host my html files, so that they can be accessed at 192.168.x.x/*.html. And viewed by other users of the LAN.

The interface is very simple and would be mainly sen开发者_如何转开发ding html forms and downloading log files.


You'll need to embed HTTP server functionality in your app. There is a multitude of ways to do this, and which one you want to use depends heavily on your needs. For example, I found this tutorial straight away.

0

精彩评论

暂无评论...
验证码 换一张
取 消