All Forums
 Microsoft Windows CE
 General CE
 Setting device Host Name
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

ctacke

877 Posts

Posted - 06 Mar 2003 :  09:52:16  Show Profile  Email Poster
Q: How do I set my device's TCP Host Name?

There are two ways to change the device's host name.
  1. Set it in the Registry
    Change the following registry keys in ADSLOAD.REG (descibed in the CE Developer's Getting Started Guide):

    [HKEY_LOCAL_MACHINE\Ident]
    "OrigName"="WinCE"
    "Name"="MyUniqueName"


  2. Set it Programmatically
    You can call the sethostname API, which is defined in winsock.h and defined as:

    int WINSOCKAPI sethostname(char *pName, int cName);
    Where pName is a buffer containing the new host name (ANSI characters) and cName is the size of that buffer.



updated March 13, 03 (cbt): added explanation of sethostname parameters

madav

15 Posts

Posted - 22 May 2003 :  14:07:53  Show Profile  Email Poster
Is there some way to set the 'Domain Name' field in the CE.Net

Thanks
Go to Top of Page

ctacke

877 Posts

Posted - 22 May 2003 :  15:50:34  Show Profile  Email Poster
The device domain name is acquired from the DHCP server if DHCP is enabled. If you are using a static IP address, you can set the Domain Name by adding or modifying the following registry key on the device:


[HKEY_LOCAL_MACHINE\COMM\TCPIP\Parms]
    "DNSDomain"="MyDomain"
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000