You Are Here:

Community: Wiki

This page was last modified on 2 December 2007, at 10:55.

Hosts file on S60 3.x Devices

From Forum Nokia Wiki

This article is intended for network application developers, who wish to 'hard-code' IP addresses for certain server names. This mechanism comes in handy when the developer wants to redirect network traffic from a live site to another test site, without the knowledge of the end user.

Contents

Concept

The "HOSTS" file is a lookup table. When the network application (such as web browser) requests to create a connection with a network server, the IP address is needed to create the connection. If the requesting application asks for "www.forum.nokia.com", this name must be converted to an IP address. The domain name system consults the HOSTS file to see if there is an entry for "www.forum.nokia.com" in it. If there is, then the IP address given in that entry will be used to create connection to.

This substitution will continue so long as the HOSTS file is present. To revert back to original behavior, one should simply delete this file.

Example HOSTS file:

# This is a sample HOSTS file (taken from a MS-Windows system)
102.54.94.97 rhino.acme.com # source server
38.25.63.10 x.acme.com # x client host

Like all the other advanced operating systems, Symbian includes support for HOSTS file. In all the operating systems, there is always a special place for HOSTS file. E.g. in UNIX like systems, the file goes in /etc . We will now see where to save the HOSTS file on S60 devices.

Pre-PlatSec World

In S60 phones without platform security, this file is located in
C:\system\data\hosts

PlatSec World (S60 3.x onwards)

In the recent phones with platform security, this file is located in
C:\private\10000882\hosts

Since this is a "private" location, one requires a file browser (or an application) with AllFiles capability to copy the file to this location.

Recommended Reading

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fHowE5ftoE5fcreateE5faE5fCountryE2dInfoE5fWidgetE5fE28WE52TE29X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZseriesE5f60Q qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qfnZuserE5ftagQSxs60X qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ