Change of IP address

  • Thread starter Thread starter Harold
  • Start date Start date
H

Harold

I tried to change the IP address of my computer suporting
windows XP embedded.
Can somebody help me on this
Thanks
 
Hi Slobodan,

I am also working on the same thing right now. I tried to use netsh to do it
but netsh requires an interface name. In the MSDN library, it seems to imply
that you have to rename the interface name to something simple like "Local
Area Connection" before netsh would work. I tried using netsh with the old
hashed name {XXX...} but it did not work. I then tried renaming the
interface name with "rundll32 netshell.dll HrRenameConnection" as documented
in the MSDN article but nothing happened. So now the only option left for me
is to use the Explorer shell so that it would rename the interface for me
automatically on startup. Any ideas how to do it correctly?

Thanks.
/Swee
 
Harold,

Sorry, I don't know how I have posted previous piece of reply I saw it when
it went trough but I have forgot about it completely.

You can use netsh for configuring IP address.
http://www.microsoft.com/windowsxp/home/using/productdoc/en/default.asp?url=
/WINDOWSXP/home/using/productdoc/en/netsh_int_ip.asp

If you want to use netsh and you are using minlogon then search for
HrRenameConnection or use following link.
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=HrRenameConnec
tion&btnG=Google+Search&meta=

Also there is some component from Heidi Linda on www.xpefiles.com that could
help you.

Or if you prefer API then you can look in Platform SDK for Internet Protocol
Helper functions.

For instance:
AddIPAddress


Best regards,
Slobodan
 
I didn't saw your post last time I checked:

Step 1: rundll32 netshell.dll HrRenameConnection - You should not see
anything just next prompt.
Step 2: use netsh.exe to set ip address.

Some basic info.

netsh does not have dependencies on its plug-in components like:
Network Command Shell Interface (this one you need to be able to use and see
NETSH INTERFACE option).

There are few plug-in components like this that you need to add manually
since netsh does not need them to work.
This is not entirely MS fault, but they should have provided all plug-in
components as possible selection choice under Network Command Shell
component.

Check:
1. That you have included Netshell component.
2. That when you run netsh and run help you have interface option available.

This is all that is required.


Best regards,
Slobodan
 
Hi Slobodan,

Thanks again. Gosh I feel so stupid... I was expecting netshell.dll to give
me some kind of shell prompt like netsh. I did not check if the connection
had been renamed after issuing the command.

/Swee
 
Back
Top