|
» Subscribe » Favorite Links » What is S60? » Freeware & Trials » S60 devices » Hints and tips » About this blog |
» Announcements (20) » Feedback (13) » Fun (1) » General (5) » Tips and tricks (12) |
|
Main links » Mymobilesite.net » Discussions » Feedback For developers » Forum Nokia start page » Wiki » Discussions |
Research » Research project » Open Source project » Wiki » SourceForge Related technology links » Apache HTTP server » Mod_python » Python for S60 |
|
Subscribe RSS 2.0 feed |
Subscribe Atom feed If you wish to receive email notification, please here » |
|
» Mobile Web Server, spreading the love » Your input needed: Mobile Web Server feeds » Your input needed: adding access rights » Fully MWS Compatible PAMP » Mobile Web Server 1.4: out now! |
|
» September 2008 » August 2008 » July 2008 » June 2008 » May 2008 » April 2008 » March 2008 » February 2008 » January 2008 » December 2007 » November 2007 » October 2007 |
|

« New release is coming.. | Main | Devicescape rocks »
Aron asked a good question ie. is it possible to use the Mobile Web Server locally via ad-hoc WLAN network. This way two (or more) devices sharing the same WLAN network can talk directly to each other without all traffic going through Internet (as in Mymobilesite.net service).
My friend Juha here kindly wrote it down for you, keep on reading.
You asked us to enable ad-hoc network usage. It's possible already, but requires some configuring. I used two S60 devices when writing this, but I have also used N800 and laptop to browse my mobile site in ad-hoc network.First you need to create a new WLAN access point. Set data bearer as Wireless LAN. Give the WLAN network some name. The network status in my case was hidden. WLAN network mode should be set to Ad-hoc.
Security mode can be open network but I use WEP to have some level of encryption. From security settings found under WEP key settings set the WEP encryption to be either 64 or 128 bits (using ASCII key format 5 or 13 characters respectively).
Back in the access point settings you should go to Advanced settings found from Options menu. In order to access other devices in the network go to IPv4 settings. Set phone IP address to some fixed unique value (e.g. 192.168.1.1). The other devices should be given other addresses in the same subnet. Set subnet mask to be 255.255.255.0 (addresses in the same network are 192.168.1.1-254). Default gateway is required, but in this case it can be anything (e.g. 1.1.1.1).
All the other values can be left as they were by default. This is probably not the only way to set up ad-hoc network but it should get you going anyway.
Start the server in local mode, establish network connection and select the previously defined ad-hoc network as access point. Now you should be able to use any device in the same network to access your server by using the previously defined IP address (192.168.1.1).
If browsing from another S60 device do the same access point configuration (with different IP) and use that AP in the browser to join the ad-hoc network. If using any other device, the similar values must be set some other way.
Hope you find this useful, and let us know if there's any problems.
-Jukka
Comments
I certainly hope it is easier in the future, I have a few ideas I'm going to bring up when we meet next week and talk about MWS.
Posted by: Stefan Constantinescu | October 11, 2007 07:02 PMJukka,
I am working with a slight variation of your approach. I run the server locally but include the mobile phone in my Wifi network at home to have access to it via the web browser of my PC. On the access point I 'locked' my Nokia phone to a specific IP address. When the mobile asks for an IP address when the connection is established it always gets the same. A little bookmark in my browser on the PC and voilĂ , easy and quick access.
Cheers,
Posted by: Martin | October 11, 2007 07:59 PMMartin
Thanks for the explanation.
Posted by: Eismaus | October 11, 2007 10:33 PMIt is written simply and understandably, and it worked at first try!
Martin, that's a good tip and a bit easier to set up.
Posted by: Jukka | October 12, 2007 09:46 AMso the next step would be to implement a dhcp-server for s60 devices. (Or is there already one?)
Then the fixed-IP-hazzling would go away.
and how do we get some dns-like funktionality? (so people could send their requests to "TobiPhone" instead of "192.168.1.1")
I would like to get my girlfriend to be able to use this, but I guess by the numer "2" (dictating the IP) I would already hear "forget it!"...
Posted by: Tobi | October 12, 2007 01:45 PMWao! This is great! I really appreciate it!
Thank You Gentleman! This is a dream come true for me!
I knew that add-hoc network requires all devices to have the same network mask but I did not know how to set the IP address on the E70! Now you thought me that also! Thank You!
This is wonderful! I love your blog already!
;-)
May I ask you two other questions:
1. Can the owner access be disabled? No supervisor access through the web, only from the terminal... Is that possible?
2. Could you please give us some emergency shut down option, e.g.: a "Master switch" in the server which disables all access at once? (even super user = owner should be possible to get disabled)
Does it fit with your design philosophy?
I mean some sort of emergency switch when you realise that something is terribly wrong... It could also be an independent firewall of some sort... ;-) at system level? :-) or an independent wifi-killer of some sort, etc...
Terveisia: Aron
p.s.: I am in "prophetizing" mood after reading your blog... Mark my words :-) : ad-hoc mode web-server on mobile devices will become a major wave of the pocket computing revolution... Congratulations Nokia! I guess that is another first... Isn't it?
Posted by: Aron | October 12, 2007 07:56 PMP.s.2: written on an E70 - true geek style... :-)
@Tobi: S60 devices cannot (at least not yet) act as routers having services like DHCP or DNS. I don't have information about such plans either. At the moment simplest solution is to use a PC to provide those services if you need them.
@Aron: Great this helped you. About our design philosophy we listen to you and implement new things if it's feasible. I'll definitely add your ideas to our "wishlist".
Posted by: Jukka Eklund | October 13, 2007 04:28 PMNot exactly a comment to the adhoc network settings, but i stumbled about this java server yesterday and it has some nice features.
http://www.tools4mobile.eu/
The Server Status and the Logfiles are a must have i think..
I like the filebrowser and upload funktion too..
Overall i like the MWS better, because of its right management, is faster and its free ;)
Oh, and while i'm at missing features. I would like to link my own static pages with the menue.
I'm sure there allready some ways, but i haven't found out how..
Eismaus
Posted by: Eismaus | October 13, 2007 04:51 PM@Tobi: We need something like this: http://www.novelinteractions.com/resolvr/index.html
Posted by: Jukka Eklund | October 17, 2007 02:31 PMAre there obtain data from GPS?
Posted by: GPF | October 22, 2007 01:43 AMGPF: Yes GPS data can be obtained (and put in your mobsite) if you have our version 1.1 installed. For more information see Python documentation:
Posted by: Jukka Eklund | October 25, 2007 06:00 PMhttp://downloads.sourceforge.net/pys60/PythonForS60_1_4_1_doc.pdf?modtime=1192536525&big_mirror=0
Aron: May I ask you two other questions:
1. Can the owner access be disabled? No supervisor access through the web, only from the terminal... Is that possible?
YES: Choose at star the "Local connection" and then go with your own mobile browser and write as url 127.0.0.1 or simply write localhost. If you choose wlan here then you can allow other (in the wlan range) to surf into you mob-site if you let them know your ip address. This number you can find from options menu Connection info.
2. Could you please give us some emergency shut down option, e.g.: a "Master switch" in the server which disables all access at once? (even super user = owner should be possible to get disabled)
Answer: MWS UI at the phone side: Settings/Connection filtering/All but administrator (meaning that it filters all but the admin > allowing only admin)
Posted by: H. Ahava | October 26, 2007 11:58 AMAny one have further developments on http4mobile from tools4mobile?
Posted by: manigandan | June 3, 2008 04:35 AMHijukka,
Ur blog s quite informative .. Really u rocked ..
Am a beginner in mobile computing. I have created a small mobile web application using java & wml.
I have tested it in openwave V7 simulator. its working fine.
Now am planning to run my application in my Nokia N70 mobile. I dont have WIFI in my mobile.
Could u give me a suggestion how to proceed using bluetooth & GPRS.. i have my GPRS enabled..
And also could u pls send me steps to run my mobile web application in my mobile using WIFI, wireless network.. i would try it using my friend's HTC mobile which has WIFI..
Am welcoming suggestions from all..
Posted by: Thivakar.A | June 20, 2008 02:22 PM