Category Archives: Networking

Default route keeps vanishing on Windows 10

A number of my PCs have a persistent problem with the default route disappearing when the system is restarted. Since I use Remote Desktop to control most of these machines remotely, it’s rather annoying; if the PC reboots, I no longer have remote access.

I hoped it would correct itself when I upgraded to Windows 10, but it’s still happening. In fact, it’s much worse — Win10 feels it has carte blanche to reboot to install upgrades without asking my permission first and when it does, I have to visit the PC to reset the default route, or find someone to do it for me.

This all started a year or two ago, with a particular Windows 7 update (I’m not sure which one). The only common factor is that all the affected PCs use static IP addresses with a manually configured default route. It doesn’t occur when DHCP is used. Most of them also have multiple network adapters.

While I have a workaround using a startup script to manually re-add the missing route, it’s awkward to run this with the elevated command privileges needed to change the default route.

Google suggested various solutions, including:

  • Editing the network adapter and switching it to DHCP, exiting, then going back in and switching it to static again. This needs to be done twice to work.
  • Resetting the TCP/IP stack (by running netsh int reset from an elevated command prompt). This is quite drastic.

I tried both of these but neither fixed it for me.

Today, I found something that *did* work. I’m recording it here in case it helps someone else.

  • Run RegEdit and navigate to Computer\HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
  • Go through each of the interface GUIDs in turn.
  • One of them will have an IPAddress field matching your main network interface. On this one, confirm that there is a REG_MULTI_SZ field called DefaultGateway containing a single text line with the IP address of your default route. If it’s not there, create it. Similarly, there should be a DefaultGatewayMetric field, also REG_MULTI_SZ, containing the single string ‘0’.
  • On all the other interface GUIDs, delete any DefaultGateway and DefaultGatewayMetric fields entirely.

After completing these steps, restart your PC. The correct default route should now be configured.

Windows 7 filesharing limit

I have a Sonos music system at home, and it’s great — I use it to make music stored on my Windows 7 Media Center system accessible throughout the house, among other things.

One of the nice things about Sonos is that it’s really easy to setup. I just point its music library at a network Share on my Media Center system and it automatically keeps everything indexed and up to date. Every now and again, however, I go to play a music track and I’m told it can’t find it. Specifically, it can’t access the file using the network share path, even though the file is there and I can play it fine locally on Media Center.

Recently, I finally figured out what was going on – a simple but not-very-well-publicised limitation built into Windows 7 Home Premium which restricts the resources used to manage network file shares. If you have a number of PCs in your house, as I do, all accessing shares on a particular PC, you can run out of resources. When this happens, any further attempts to access the share will fail. Not good!

Happily, there is a straightforward fix – Alan Lamielle describes it on his blog.

The short version is to find this registry key on the Windows 7 machine:

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache

and change the following registry key from ‘1’ to ’3′:

HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size

Then restart the ‘Server’ service (or restart Windows itself if you prefer) and everything will be back to normal again.

Since making this change, I haven’t had a single recurrance of the problem – happy days!

Syncing sent mail between iPhone and Outlook

I use Outlook 2003 for most of my mail. However, since buying an iPhone last year, I’ve gradually been replying to more and more messages by phone. The convenience of being able to send a quick reply Right Now is great; it’s one less email to deal with when I get back to my desk, and a good use of what would otherwise be dead time.

This creates a problem though: I use POP3 mail with Outlook so it doesn’t see messages sent from my iPhone. If I want to check back on a reply weeks or months later, it can be difficult to locate.

To fix this, I have my iPhone configured to automatically BCC me on any messages or replies I send. This works but the BCC’d messages arrive in my Inbox as new messages which I then need to consciously ignore. They’re also more difficult to find later on since I need to search my entire Inbox instead of just checking my Sent Items.

Today, I finally implemented a really simple, obvious solution I should have come up with months ago: using Outlook’s Rules to automatically move such messages to the Sent Items folder. The trick is to use an obscure Rules feature that lets you check for specific keywords in the message header.

Outlook Rules editor

If you open any message sent from the iPhone in Outlook, and choose View Menu -> Options, you will see the full mail header. iPhone messages always have an X-Mailer header line reading “iPhone Mail (xxxx)”. Outlook can use this to identify iPhone messages automatically and move them to Sent Items.

I don’t want to move messages I receive from other iPhone users though, just messages sent from my iPhone. I also don’t want to move messages sent to me – I often send myself iPhone messages to remind me to do things, or to quickly move photos from my phone to my desktop without having to sync. Outlook can handle both of these conditions by simply checking the To: and From: fields of the message.

Putting it altogether, I created a new Outlook Rule like this. (The steps are for Outlook 2003, but Outlook 2007/2010 should be similar):

  1. Select Rules and Alerts on the Outlook Tools menu
  2. Click to create a New Rule; start from a Blank rule, not a pre-defined template
  3. Turn on these conditions: From people or distribution list, and With specific words in the message header
  4. In the rule description below, edit the People or distribution list to include the address(es) you send iPhone mail from. Also edit the Specific words list to include the phrase iPhone Mail.
  5. Click Next and choose the actions Move it to a specific folder and optionally Flag it with a colored flag. (I move messages to my Sent Items folder, and flag them green to make them stand out, but you could create a folder specifically for iPhone messages if you prefer.)
  6. Click Next, then choose Except if sent only to me from the list of exceptions. This ensures that messages I forward to myself don’t get moved to Sent Items.
  7. Click Next once more to finish creating the rule, give it a sensible rule name (I used iPhone Messages) and then, if you like, run it immediately on the contents of your Inbox. This tidied up all the existing messages I’ve sent from my iPhone over the past year.

Only takes a minute to set up, and now my Inbox feels like it’s back under control again. Better, I can now easily find messages I sent on my iPhone while searching on my desktop.

(Yes, switching from POP3 to IMAP would let me do all this seamlessly, in principle, but there’s something about the simplicity of POP3 that I continue to like.)

Monitoring network downtime with PRTG

I’ve been using MRTG for a while to monitor assorted servers, routers, and switches I manage at The Windmill. It’s free, works pretty well, and is quite configurable. The graphs it produces are plain but functional, and they do the job.

Recently, I needed a tool to monitor my home network, primarily because the Cisco 3925 router provided by my Internet supplier, UPC, has had a nasty tendency to lockup every week or so. Now, UPC’s 120 Mb/s Internet service is fantastic value, and performs exceptionally well, but having it randomly interrupted like this is really, really annoying — especially when the router is buried in a small cupboard at the back of our attic, where all the TV wiring is concentrated.

I also have a wireless access point (an old reconditioned Eircom Netopia 2247) which periodically hangs, though on a different schedule to the Cisco. So, I figured it was time to start monitoring both devices to see exactly when they go offline, in the hope that I might be able to correlate it with other network activity.

While MRTG can do this, it’s not the most user friendly of systems to configure. Since I crave nothing more than an easy life, I decided to look around for alternatives.

This brought me to PRTG, a commercial monitoring tool from Paessler that covers some of the same ground. It’s free for up to 10 monitoring points, runs under Windows, and has a nice web-based GUI that makes it easy to configure or review logs from anywhere on my LAN. So, I decided to give it a try.

I’ve been using PRTG for about two months now, and it’s working very well. There are a huge number of built-in sensors: everything from basic PING tests, SNMP polling of routers & switches to Windows system metrics (for any machine on the LAN) to remote website HTTP monitoring. With the 10 free sensors included in the evaluation copy, I was able to add rules for three websites I manage, my Wifi and Internet routers, a separate VPN router I use to access client networks, and also a few of my local machines:

PRTG lets you create sensor dependency trees: for example, I monitor the uptime of this website (www.snoopdos.com) but the monitoring rule says not to try and monitor it if the UPC Cisco router is down, OR if Google’s main DNS server at 8.8.8.8 can’t be reached. This ensures I don’t get an onslaught of website failures in the log just because my Internet connection was interrupted.

PRTG also lets you raise alerts whenever a sensor goes on or offline, or crosses a threshold. For example, if the disk space on C:\ on my main Media Center TV system drops below 1 GB, I can easily have PRTG alert me, either by email or SMS.

I’ve barely scratched the surface of what’s possible so far, but it’s a very capable system. When Paessler emailed me today with an offer to upgrade my free 10-sensor license to 30 sensors in return for some blog coverage, it wasn’t a difficult decision. While I only blog about products I actually like and use, PRTG now falls squarely into that camp. Give it a try and see what you think for yourself.

Why choose Snoopdos?

Like most engineers, technology is my comfort zone. It’s easy to forget that running a successful business needs a sprinkling of sales & marketing, and even (gasp) self-promotion. So for a change, I thought I’d talk a little about Snoopdos itself and why you might want to consider us for your next project.

Wairere Falls, Waikato, New ZealandThere are many reasons for choosing Snoopdos. Our team of experts combines highly communicative people with varied skills in a wide range of sectors which means we have a wealth of knowledge and creativity to offer you. We have collaborated internationally with great success. Our scope spans all kinds of projects for companies of all sizes. We can devise a program with which to achieve your goals. Take your business to the next level with our help!

We offer indepth consultancy services. Typically, we first evaluate your current set up. We do a general evaluation and quickly pinpoint what needs to change and how exactly to do so. We consider what positive ideas are already in place and design ways to make them even more powerful. There is no set program, since all companies differ, so we customize everything down to the details.

Whether you are an artistic start-up company or a big telecommunications operation, whether you have the most basic of sites or a large powerful one like O2 we can show you how to get more out of your online presence.

Don’t underestimate the power of an effective website. An excellent website will not only provide great promotion and attract more clients to your services and products; done right, it can also open another stream of income for you as you select appropriate advertisements and links to display. Take your company international with the reach of an amazing site. We can get you there!

One of our core skills is software development. If your website or indeed other project requires bespoke development, we can deliver. Our team is extremely professional, able to work to deadlines and your specific requirements.

Please fell free to contact us at your earliest convenience so that we can schedule an initial meeting. We can discuss your needs and together decide on the best plan of action. We look forward to helping you accomplish your professional goals. Thank you for considering Snoopdos!

OpenSocial: now facebook is for everyone

Marc Andreessen’s always-interesting blog today talks about OpenSocial, a new standard spear-headed by Google which aims to provide a common API for embedding new web content and apps across all the main social network sites.

This is very similar to the Facebook Platform API launched a few months ago to critical acclaim, but with the significant difference that OpenSocial is an open standard which pretty much everyone else except Facebook is jumping on the bandwagon to support.

Marc’s blog does a much better job of describing the benefits than I can. In a nutshell, though, it means that if you run a website that offers a useful service, you can now easily allow it to be embedded in any of the main social networking sites (LinkedIn, Friendster, Ning, etc.) by just adding some basic HTML & Javascript support.

This should be fun…

(The official Google launch is tomorrow, at which point http://code.google.com/apis/opensocial should become operational.)

Seam Carving & Tiny First Person Shooters

My friend James was impressed by the Tilt-shift photography I mentioned in the previous post, and sent me some related material.

Seam carving is an image resizing technique which works by identifying horizontal and vertical seams with low information content and then removing them, rather than simply removing pixels according to a fixed scaling algorithm.

This means that the proportions of important items within the picture are maintained. The same technique can be adapted to increase the size of an image (especially in a single dimension) without making it look skewed. And more intriguingly, by first marking parts of the image as “low value”, you can seamlessly erase elements of a picture automatically — no Photoshop expertise required.

This YouTube video does a good job of describing it:

Not content with this, James also pointed me towards .kkrieger, a simple 3D shoot-em-up with an impressive twist: the executable size is less than 100 KB. (Yes, that’s Kilobytes). The program would have easily fitted onto a standard 170 KB floppy disk from the Commdore 64 era 25 years ago!

Despite this, the game has pretty decent graphics and sound, not dissimilar to Doom, as this screenshot shows:

Screenshot from .kkrieger

The amazingly small file size is achieved by generating all textures algorithmically at runtime. This leads to long, though not excessive load times.

To download the game or read more about it, visit the main .kkrieger website.

Flatrate 3G access from Vodafone

ENN reports that Vodafone Ireland have announced a flatrate 3G access package from 1 July.

For around €50 per month, users can enjoy up to 1 Mbps downstream Internet access while on the move, subject to a monthly cap of 5 GB of data.

This sounds like a pretty good deal, though I’m dubious as to how close to 1 Mbps your average mobile user can expect; I’d expect speeds closer to 128 Kbps. You only need to have a conversation with someone on a car phone to realise how hard the mobile network works just to keep a connection up at all.

However, I’m more interested in its potential for fixed base users, such as those in areas too remote to have traditional broadband available. Until now, the only solution for such users has been satellite, which is both expensive and awkward.

Vodafone have > 99% coverage around the country, so there is an excellent chance that almost every household will be within range of a mobile signal. It’s not clear whether Vodafone need to upgrade the transmitters on each mast to support 3G access, or whether this can be accomplished by a software upgrade. If the latter, then this may finally be a cost-effective way for small businesses in remote regions to get decent Internet access.

(Keep in mind also that a fixed antenna should be capable of much better datarates than a purely mobile solution. And if the introductory price is €50 per month, prices can only get cheaper over time.)

DDoS against UltraDNS

The Washington Post has an interesting article about a Distributed Denial of Service (DDoS) attack against UltraDNS, a provider of domain name services.

It’s a chilling read. If you’ve wondered why recently, some popular websites appear to be mysteriously offline, this may provide some of the answers.

The most unsettling bit is that there doesn’t seem to be any obvious way to defend against this sort of attack.

Multi-touch interaction experiments

Okay, so no sign of that Networking History video reappearing on Google Video.

Here’s something else instead: a video showing Multi-Touch Interaction Research.

I particularly like the application for sorting photos; very nice the way photos can be zoomed and shrunk with a simple finger gesture.

There isn’t much information about the type of screen used, but it seems it can handle multiple finger presses simultaneously – I think this is vital for moving such interfaces to the level where they can be genuinely useful (rather than just convenient, as with touchscreen kiosks).