Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

DDNS how to?

DDNS

  • Please log in to reply
4 replies to this topic

#1 sebswed

sebswed

    Advanced Member

  • Members
  • PipPipPip
  • 45 posts
  • LocationSweden

Posted 15 April 2013 - 07:27 PM

Hi there.

 

Could someone explain what to do? I thought I understood this concept but it doesn't work so I guess I missed something.

 

I have a D-Link modem/router (DSL-2740B) and with that you are allowed to create one free DDNS at https://www.dlinkddns.com/login so I created a host name, lets call it hostname.dlinkddns.com , used the IP address that was showing and saved the settings.

 

I specified this hostname.dlinkddns.com also in my router (ipoe_atm0/atm0) and added a port forward with,

 

Name: Netduino

Address: 192.168.1.2

External port: 80

Internal port: 80

Protocol: TCP

Wan Interface: atm0

 

If I type 192.168.1.2 in my browser I get the Netduino webserver (on my local network)

If I type hostname.dlinkddns.com I get to see my routers login page (on my local network)

 

Outside my local network I do not get a result on hostname.dlinkddns.com

 

I read on the D-Link forum that some firmware versions do not allow passwords longer than 10 digits (I used 9)

I even deleted the host, reset the modem to factory default and tried again. No result.

 

The funny thing is, it used to work with an Arduino, so  know its possible. I just cant remember how I did it the first time

 

Should I use a different port (8080) ?

 

In my code I use: socket.Bind(new IPEndPoint(IPAddress.Any, 80));

 

Is there something obvious missing?

Any advise is welcome.


Netduino Plus 2 (v4.2.2.2)


#2 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 16 April 2013 - 07:29 AM

It looks like a routing issue. Since many routers use port 80 for the embedded control panel, I wouldn't recommend that port, but it should work if you make a port forwarding rule.

If you make it port 8080 for example, does it work in that case? Just to rule things out.


"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#3 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 16 April 2013 - 09:43 AM

that happen for me when the router cant resolve the hostname for the server, that it shows its login panel too.

 

i fixed that by giving my device a static ip and entered that in the router, but well, mines a bit different too i guess.



#4 sebswed

sebswed

    Advanced Member

  • Members
  • PipPipPip
  • 45 posts
  • LocationSweden

Posted 17 April 2013 - 05:13 PM

I had no time to reply earlier. I tried port 8080, (specified port 8080 in my router, netduino and url), no result.

I experimented a little to get the IP address somehow static in the netduino, but got confused with the code :)

 

I have to experiment some more before I understand how to accomplish this. I downloaded some webserver projects so I can inspect the code they used to see if it makes sense to me. Its like solving a puzzle :)


Netduino Plus 2 (v4.2.2.2)


#5 sebswed

sebswed

    Advanced Member

  • Members
  • PipPipPip
  • 45 posts
  • LocationSweden

Posted 17 April 2013 - 05:52 PM

I tried a different webserver project that worked like charm. I even got it to work with DDNS. I guess I must have had something strange in my previous code. Anyways, I thought I just let you guys know that the puzzle got solved (replaced)  :) 


Netduino Plus 2 (v4.2.2.2)





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.