Main Site Documentation

Having an issue with Static IP


#1

I was trying this example out on my Cobra board.
http://www.tinyclr.com/forum/10/866/#/1/

which worked fine. i have used MFDeploy and set a static IP , when it reboots it does indeed show the IP i set on the screen.

in that example when i comment out the DHCP section and un-comment out the static section it no longer works.

Any ideas why ?


#2

Anyone ?


#3

What IP address did you set using MFDeploy ?

What IP did u use on this line ?


NI.EnableStaticIP("192.169.0.25", "255.255.255.0", "192.169.0.1");

What IP are you trying to connect to from the client (I assume the computer) ? Is it 192.169.0.25 ?

What is the IP addres of the client (assume your computer) ? Are both on the same network ?


#4

the address i used on MFDeploy was 192.168.0.8

I used NI.EnableStaticIP(“192.169.0.8”, “255.255.255.0”, “192.169.0.1”);

I am using my computer to connect to it and my computer is 192.168.0.2

Both are on the same network. If i enable the DHCP it works fine. When i switch to static it dont not connect.


#5

Can you ping 192.169.0.8 ?


#6

The 169’s in the line above should be 168. Typo?


#7

Typo or “copy paste” wonders :slight_smile:


#8

ya typo :wink:


#9

@ Todd Stone, Great Catch!

I cannot believe i missed that!!! I must have looked at that 10 times. I better get my eyes checked. Boy do i feel the fool now ;(

Changed it and works just fine now, thanks guys