Article View: borland.public.delphi.language.objectpascal
Article #142RasAPI and IP addressing
From: Saleem Ebrahim
Date: Tue, 02 Mar 2004 12:33
Date: Tue, 02 Mar 2004 12:33
24 lines
1703 bytes
1703 bytes
Hi
I am using RasAPI to dial into a small 4 pc network. Static Ip
address range is 10.0.0.1 to 10.0.0.4 on subnet 255.255.255.0
When I dial using RasAPI (Delphi 7) I do manage to connect but it
gives me a 169.xx.xx.xx address with a subnet of 255.0.0.0.
If I dial using Network and Dialup Connections, I can specify the ip
address that i wish to use. Is there any way that I can specify the
MY IP address when connecting, USING RASAPI. I tried the netsh
command, (netsh interface ip set address "{xxxxxx}" static 10.0.0.200
255.255.255.0) but that referred me to the
"rundll32 netshell.dll HrRenameConnection" command as I need to name
the interface first.
I am using Win2k SP3 and this command does not seem to help. Every
documentation that I found, appears to be for XP.
Thanks in advance.
Saleem
Feel free to reply to sebrahim@mrpricegroup.com
Technical Details
Message-ID:
<f083a81.0403020433.4c5872c5@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d30,cd634b194eaebee0,start X-Google-Attributes: gid109d30,public X-Google-ArrivalTime: 2004-03-02 04:33:41 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: sebrahim@mrpricegroup.com (Saleem Ebrahim) Newsgroups: borland.public.delphi.language.objectpascal Subject: RasAPI and IP addressing Date: 2 Mar 2004 04:33:41 -0800 Organization: http://groups.google.com Lines: 24 Message-ID: <f083a81.0403020433.4c5872c5@posting.google.com> NNTP-Posting-Host: 168.209.97.34 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1078230821 11273 127.0.0.1 (2 Mar 2004 12:33:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 2 Mar 2004 12:33:41 +0000 (UTC)