All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

Old 10-07-2006, 10:19 PM
Telumehtar Telumehtar is offline
Registered User
Join Date: May 2006
Posts: 59
Telumehtar is on a distinguished road
Article Nokia N80 Wifi and MTU problem solved

I'm going to tell a bit of a long winded story about a major headache I've been having getting my N80 to talk to a web server on my local WLAN. It's a bit of an obscure problem and it might not affect you even if you're trying to do something very similar to me, but it might be of some interest to geeks and it might help someone one day with the same problem who decides to search here.

I recently set up a little fanless Mini-ITX PC and set it up as a headless Linux server (with Ubuntu Dapper Drake LAMP server). I have all kinds of uses for it, but the most fun was to set up MPD. MPD is Music Player Daemon and it's a network controllable music player. I connected up a big USB hard disk that has all my music on it in lossless FLAC format, and the Mini-ITX board has an SPDIF output that connects nicely to my home-cinema amp to avoid using the rather noisy analogue sound you normally get from a PC.

Next I installed phpMp2 which is a web interface for MPD, so I think you can see where I'm going: I want to control my music from my Nokia phone, the main advantage being I don't have to turn on my big, noisy, main PC when I want to listen to music, and another advantage being that it's really cool to be able to make up a playlist when I'm on the tube and be able to have it already playing when I'm coming through the door!

So I got most of this working when I was at work, installing software by connecting to my little PC by SSH with MidpSSH (a cool Java SSH client for phones) and testing it all out over 3G.

The trouble started when I got home, connected to my server over the local WLAN, and the phone rebooted. I tried everything: installing alternative web interfaces for MPD, adjusting my WLAN security settings, using Opera instead of the built-in browser; using my PSP's web browser instead... Interestingly the PSP's browser just hung there and eventually timed out.

Which was odd, because my main PC connected just fine, even over WiFi. And I could connect just fine over 3G, just not WLAN. And why did it affect the PSP as well? The phone and the PSP can both browse external web sites just fine, the problem only affected the local LAN. Even MidpSSH crashed occasionally when connecting over WLAN. It had to be something about my local LAN.

I tore my hair out for about three days. In the end I found kind of a solution: avoid the local LAN by setting up the web interface on a web site I have hosted in the US. This worked, but it was slow, and sending a message across the atlantic and back when I wanted to skip a track just seemed wrong.

Then tonight I had a brainwave: I remembered about MTU.

MTU is a term that was bandied about a lot when I was hanging out on a broadband forum trying to get the most speed out of my net connection. It stands for maximum transmission unit, and is the maximum number of bytes that a given network medium can transmit in one go. It's important in IP (Internet Protocol) networking because IP packets have to traverse different physical types of network with different MTUs. IP copes by fragmenting big packets up into smaller ones, but this sometimes doesn't work well because a packet that's *just* too big to be sent in one go gets split into a big packet and a small packet, and this can happen over and over again and affect network speed.

Anyway, it just so happens that Ethernet (which is how my Mini-ITX PC is connected to the network) has an MTU of 1500 bytes, and WiFi has an MTU of 1492. This means lots of packet fragmentation. What if this was affecting the phone and the PSP somehow? Both are portable devices and probably have cut down implementations of IP, maybe they're not coping so well with all the fragmentation.

You can easily tell Linux to change the MTU of a particular interface with a command like: "ipconfig eth0 mtu 1492". You can probably do this in Windows too, with an obscure, deeply nested dialogue box somewhere, or regedit.

Anyway, one little command, and suddenly everything worked! Eureka!

I learnt a few lessons: one tiny command in Linux can fix almost any problem, you just have to know the right one; and if a problem gets the better of you, ignore it for a few days and the answer might just pop into your head when you least expect it.

You may not experience this problem because it may be something to do with the particular WiFi router I'm using, or the cables, or the fact that my flat is really untidy, or the weather. Also, I never got round to upgrading my phone firmware, so that might have fixed it, too.

But anyway, I hope that this story is of some interest to someone. If you made it this far, thanks for reading!


Old 10-07-2006, 10:37 PM
Rafe's Avatar
Rafe Rafe is offline
Founder / Chief
Join Date: Jul 2001
Location: Sussex
Posts: 6,084
Rafe is a glorious beacon of lightRafe is a glorious beacon of lightRafe is a glorious beacon of lightRafe is a glorious beacon of lightRafe is a glorious beacon of lightRafe is a glorious beacon of light
Wow, thanks for taking the time to share that.

Also think your music solution is rather interesting. You're defintely winning point for geekiness there. Might be rather fun to try this out and write it up for the site. Though I guess I wont have time
Remember: The search command is your friend.
Feedback wanted: PM, email or post with your suggestions, complaints, feedback.

Old 17-07-2006, 11:50 PM
Telumehtar Telumehtar is offline
Registered User
Join Date: May 2006
Posts: 59
Telumehtar is on a distinguished road
It looks like I won't have time to write a tutorial for a while, but details of my mini-ITX box are here:

And I have been keeping detailed notes of everything I have done to set it up here:


Old 18-07-2006, 03:39 AM
_Dx_ _Dx_ is offline
Registered User
Join Date: May 2006
Posts: 284
_Dx_ is on a distinguished road
Would be great that u could do a tuto hehehe, but ill give this a try thanks for ur info!!!, any admin should stick this

Old 18-07-2006, 08:11 AM
chrsfrwll chrsfrwll is offline
Registered User
Join Date: Oct 2005
Posts: 888
chrsfrwll is on a distinguished road
Originally Posted by Telumehtar
.... Ethernet (which is how my Mini-ITX PC is connected to the network) has an MTU of 1500 bytes, and WiFi has an MTU of 1492.
Rob, thanks for the heads up on this but I'd be interested in knowing where you found out WiFi needs an MTU of 1492. I've been using a wireless router for the past couple of years with the MTU set at 1500 and have even run tests to check that the MTU is ok, using the Ping -f -l <packet size> <target site> to check for fragmentation. Allowing for header size, I still get 1500 as the max before fragmentation.

Can you point me in the direction you coming from?


Old 04-09-2007, 03:03 PM
bugmenot bugmenot is offline
Registered User
Join Date: Mar 2007
Posts: 36
bugmenot is on a distinguished road
Phone Handset music-pd client for Symbian-60 [mpc for S60]

I were just searching software for my new Nokia E65 phone. I need to have MPD frontend mpc for S60. You were using web page to control your MPD? Isn't that hard to ff or rewind music and control playlist with phone browser?
I'd like to have mpc client which works over WLAN or bluetooth. I'm not programmer so I can't program it. But perhaps some scripting. Or ask some friend to create a program.


mtu, n80, nokia, problem, solved, wifi

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 05:28 AM.

vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy