EmbeddedRelated.com
Forums

Using Static IP mode

Started by Steve January 31, 2005

--- Dave Moore <dmoore@dmoo...> wrote:

> When do you get the message? When you try to telnet
> into the Win98 box or
> something?

I'm using a Visual Basic application to connect to the
Rabbit. When it issues the "Connect" command is when I
get the error message.

Steve


No, you’ve got to get it from ethereal.com, it’s a free download. If you plan on doing much work with Ethernet, Ethereal or some other packet sniffer is a must.

 

From: Steve Trigero [mailto:s...@yahoo.com]
Sent: Monday, January 31, 2005 3:27 PM
To: r...@yahoogroups.com
Subject: RE: [rabbit-semi] Using Static IP mode

 

Don't know what Ethereal is. Should that already be on
my PC?

Steve --- Bob Hohentanner <b...@acromag.com> wrote:

> You could try Ethereal to capture the transaction
> and possibly why the
> Rabbit is rejecting the connection.

> ________________________________
>
> From: Steve Trigero [mailto:s...@yahoo.com]
> Sent: Monday, January 31, 2005 3:18 PM
> To: r...@yahoogroups.com
> Subject: RE: [rabbit-semi] Using Static IP mode

> The Rabbit is: 192.168.100.1
> The PC is:     192.168.100.2
>
> Steve
>
>
> --- Bob Hohentanner <b...@acromag.com>
> wrote:
>
> > What IP address did you set the 3000 and the PC
> to?
> > 
> > Bob
> > 
> > ________________________________
> >
> > From: Steve Trigero [mailto:s...@yahoo.com]
> > Sent: Monday, January 31, 2005 3:05 PM
> > To: r...@yahoogroups.com
> > Subject: Re: [rabbit-semi] Using Static IP mode
> > 
> > No, its Win98. No firewall.
> >
> >
> > Steve
> >
> >
> > --- Arlen Fletcher <a...@direcway.com> wrote:
> >
> > > Steve,
> > >
> > > Sounds like you're running a firewall... Are you
> > on
> > > XP SP2?
> > >
> > > Arlen
> > > On Jan 31, 2005, at 11:55 AM, Steve wrote:
> > >
> > > >
> > > >
> > > > I've got an RCM3000 module configured for
> > > ethernet. If I set it to use
> > > > DHCP, and connect it to a network server, it
> > works
> > > fine. But when I
> > > > set it to Static IP mode, set the IP address,
> > and
> > > connect it to a PC
> > > > directly via a cros-over cable I am unable to
> > > connect. The PC is set
> > > > to static IP mode as well.
> > > >
> > > > On the PC side I get the following error
> > message:
> > > >
> > > > Error No: 10061
> > > > Descr: Connection is forcefully rejected
> > > > Scode: -2146818227
> > > > Source: C:\Windows\System\MSWINSCK.OCX
> > > >
> > > > I'm not sure if this is a PC issue or a Rabbit
> > > issue. Any suggestions?
> > > >
> > > > Steve
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > > .
> >
>
>
>
> ________________________________
>
> > .
>




I’m not familiar with the RCM3000, does it have a network activity LED on it? If so, is this LED indicating any network activity when you are trying to connect with it?

 

From: Steve Trigero [mailto:s...@yahoo.com]
Sent: Monday, January 31, 2005 3:23 PM
To: r...@yahoogroups.com
Subject: Re: [rabbit-semi] Using Static IP mode

 

--- Arlen Fletcher <a...@direcway.com> wrote:

> Hmm...  I presume you're assigning static IP
> addresses and netmasks
> that place the PC and the RCM3000 in the same
> subnet?
>

The netmask for both is 255.255.255.0

> If you connect the RCM3000 and the PC to the same
> network (using DCHP
> first, then statically assigned addresses), can you
> connect to the
> RCM3000 from the PC?
>

Can't connect that way either. > What port(s) are you trying to connect to the
> RCM3000 on? Port 2000

Steve




Telnet gives me error message: Could not opa a
connection to 192.168.1

telnet 192.168.100.1 2000

Steve --- George Georgiev <g...@g.ge...> wrote:

> This is what MSDN says about 10061:
> Connection refused.
> No connection could be made because the target
> computer actively refused it.
> This usually results from trying to connect to a
> service that is inactive on
> the foreign hostthat is, one with no server
> application running.
>
> It seems that Rabbit does not listen to the port
> your WinSock application is
> trying to open. Try to open the port (from the PC)
> using telnet instead,
> e.g.
> telnet 192.168.100.1 12345
>
> -----Original Message-----
> From: Steve [mailto:seecwriter@seec...]
> Sent: Monday, January 31, 2005 11:55 AM
> To: rabbit-semi@rabb...
> Subject: [rabbit-semi] Using Static IP mode >
>
> I've got an RCM3000 module configured for ethernet.
> If I set it to use
> DHCP, and connect it to a network server, it works
> fine. But when I
> set it to Static IP mode, set the IP address, and
> connect it to a PC
> directly via a cros-over cable I am unable to
> connect. The PC is set
> to static IP mode as well.
>
> On the PC side I get the following error message:
>
> Error No: 10061
> Descr: Connection is forcefully rejected
> Scode: -2146818227
> Source: C:\Windows\System\MSWINSCK.OCX
>
> I'm not sure if this is a PC issue or a Rabbit
> issue. Any suggestions?
>
> Steve >
>
> Yahoo! Groups Links >
>




Steve Trigero wrote:
> --- Dave Moore <dmoore@dmoo...> wrote:
>
>> When do you get the message? When you try to telnet into the Win98
>> box or something?
>
> I'm using a Visual Basic application to connect to the Rabbit. When
> it issues the "Connect" command is when I get the error message.
>

I assume you've changed the VB app to connect to the "new" correct IP
address/port number? Cleared out all of the ARP caches to make sure you're
"new" IP address will resolve correctly? Does ping work?

Maybe try connection using Telnet (like George pointed out.) Make sure it's
not the VB environment hosing you.


And everything works fine with a DHCP supplied IP address?

-----Original Message-----
From: Steve Trigero [mailto:seecwriter@seec...]
Sent: Monday, January 31, 2005 3:37 PM
To: rabbit-semi@rabb...
Subject: RE: [rabbit-semi] Using Static IP mode Telnet gives me error message: Could not opa a
connection to 192.168.1

telnet 192.168.100.1 2000

Steve --- George Georgiev <g...@g.ge...> wrote:

> This is what MSDN says about 10061:
> Connection refused.
> No connection could be made because the target
> computer actively refused it.
> This usually results from trying to connect to a
> service that is inactive on
> the foreign host-that is, one with no server
> application running.
>
> It seems that Rabbit does not listen to the port
> your WinSock application is
> trying to open. Try to open the port (from the PC)
> using telnet instead,
> e.g.
> telnet 192.168.100.1 12345
>
> -----Original Message-----
> From: Steve [mailto:seecwriter@seec...]
> Sent: Monday, January 31, 2005 11:55 AM
> To: rabbit-semi@rabb...
> Subject: [rabbit-semi] Using Static IP mode >
>
> I've got an RCM3000 module configured for ethernet.
> If I set it to use
> DHCP, and connect it to a network server, it works
> fine. But when I
> set it to Static IP mode, set the IP address, and
> connect it to a PC
> directly via a cros-over cable I am unable to
> connect. The PC is set
> to static IP mode as well.
>
> On the PC side I get the following error message:
>
> Error No: 10061
> Descr: Connection is forcefully rejected
> Scode: -2146818227
> Source: C:\Windows\System\MSWINSCK.OCX
>
> I'm not sure if this is a PC issue or a Rabbit
> issue. Any suggestions?
>
> Steve >
>
> Yahoo! Groups Links >
>

Yahoo! Groups Links


Can you run it on another Windows box? Something with XP or 2000?

Steve Trigero wrote:
> Telnet gives me error message: Could not opa a connection to 192.168.1
>
> telnet 192.168.100.1 2000
>
> Steve > --- George Georgiev <g...@g.ge...> wrote:
>
>> This is what MSDN says about 10061:
>> Connection refused.
>> No connection could be made because the target computer actively
>> refused it. This usually results from trying to connect to a service
>> that is inactive on the foreign hostthat is, one with no server
>> application running.
>>
>> It seems that Rabbit does not listen to the port your WinSock
>> application is trying to open. Try to open the port (from the PC)
>> using telnet instead, e.g. telnet 192.168.100.1 12345
>>
>> -----Original Message-----
>> From: Steve [mailto:seecwriter@seec...]
>> Sent: Monday, January 31, 2005 11:55 AM
>> To: rabbit-semi@rabb...
>> Subject: [rabbit-semi] Using Static IP mode
>>
>>
>>
>>
>> I've got an RCM3000 module configured for ethernet.
>> If I set it to use
>> DHCP, and connect it to a network server, it works fine. But when I
>> set it to Static IP mode, set the IP address, and connect it to a PC
>> directly via a cros-over cable I am unable to connect. The PC is set
>> to static IP mode as well.
>>
>> On the PC side I get the following error message:
>>
>> Error No: 10061
>> Descr: Connection is forcefully rejected
>> Scode: -2146818227
>> Source: C:\Windows\System\MSWINSCK.OCX
>>
>> I'm not sure if this is a PC issue or a Rabbit issue. Any
>> suggestions?
>>
>> Steve
>>
>>
>>
>>
>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>>
>>
> >
>
> Yahoo! Groups Links >




Perhaps its the way I'm initializing the Rabbit for
Static IP mode.

This is my initialization code:

#define IFCONFIG_ETH0 \
IFS_DOWN, \
IFS_DHCP, 0, \
IFS_IPADDR, static_ip_adrs, \
IFS_NETMASK, net_mask init_enet()
{
if( first_time )
ifconfig( IF_DEFAULT,
IFS_DHCP, 0,
IFS_IPADDR, static_ip_adrs,
IFS_NETMASK, net_mask,
IFS_END );

first_time = 0;
else { // Do this 5-seconds later..
pd_havelink( 0 ){
if ( use_dhcp ) {
// do DHCP init
}
else {
ifconfig( IF_DEFAULT,
IFCONFIG_ETH0,
IFS_UP,
IFS_END );

}
}
}
}

--- Steve Trigero <seecwriter@seec...> wrote:

>
> --- Dave Moore <dmoore@dmoo...> wrote:
>
> > When do you get the message? When you try to
> telnet
> > into the Win98 box or
> > something?
>
> I'm using a Visual Basic application to connect to
> the
> Rabbit. When it issues the "Connect" command is when
> I
> get the error message.
>
> Steve





--- Bob Hohentanner <bhohentanner@bhoh...> wrote:

> And everything works fine with a DHCP supplied IP
> address?
>

Yes.



It might be worth compiling and loading one of the sample HTTP programs
(STATIC.C is a good one to try) to see if you can connect w/ a browser
on port 80. (http://10.10.6.100 - if you're using #define TCPCONFIG 1).
If that works, change the default port to 2000 and re-compile. See if
you can connect with your browser again (using the twisted cable)
using http://10.10.6.100:2000 (you'll have to change your PC's IP
address to the 10.10.6.x range). If that works OK, then it sounds like
there may be a problem with your application.

Arlen

On Jan 31, 2005, at 12:37 PM, Steve Trigero wrote:

>
> Telnet gives me error message: Could not opa a
> connection to 192.168.1
>
> telnet 192.168.100.1 2000
>
> Steve > --- George Georgiev <g...@g.ge...> wrote:
>
>> This is what MSDN says about 10061:
>> Connection refused.
>> No connection could be made because the target
>> computer actively refused it.
>> This usually results from trying to connect to a
>> service that is inactive on
>> the foreign hostthat is, one with no server
>> application running.
>>
>> It seems that Rabbit does not listen to the port
>> your WinSock application is
>> trying to open. Try to open the port (from the PC)
>> using telnet instead,
>> e.g.
>> telnet 192.168.100.1 12345
>>
>> -----Original Message-----
>> From: Steve [mailto:seecwriter@seec...]
>> Sent: Monday, January 31, 2005 11:55 AM
>> To: rabbit-semi@rabb...
>> Subject: [rabbit-semi] Using Static IP mode
>>
>>
>>
>>
>> I've got an RCM3000 module configured for ethernet.
>> If I set it to use
>> DHCP, and connect it to a network server, it works
>> fine. But when I
>> set it to Static IP mode, set the IP address, and
>> connect it to a PC
>> directly via a cros-over cable I am unable to
>> connect. The PC is set
>> to static IP mode as well.
>>
>> On the PC side I get the following error message:
>>
>> Error No: 10061
>> Descr: Connection is forcefully rejected
>> Scode: -2146818227
>> Source: C:\Windows\System\MSWINSCK.OCX
>>
>> I'm not sure if this is a PC issue or a Rabbit
>> issue. Any suggestions?
>>
>> Steve
>>
>>
>>
>>
>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>>
>>
> >
>
> Yahoo! Groups Links >
>