[En-Nut-Discussion] TCP connection to fixe IP

Thiago A. Corrêa thiago.correa at gmail.com
Fri Nov 13 14:32:16 CET 2009


Hi,

On Thu, Nov 12, 2009 at 6:24 PM, Ulrich Prinz <uprinz2 at netscape.net> wrote:
> I cannot really believe that exchanging ip-packets through the internet
> doesn't work with Nut/OS, as I use the Elektor Internet Radio. It gets
> its playlists via http-request and receives the selected streams without
> any problems.
>

My company produces Ethernut 1 based boards and one of those was
accessible thru the internet as a server and working ok. Harald and
some others also have done the same with ARM, so I think there is
clearly a problem with either the code or the network configuration.

A better test than ping is to telnet to your port 5001 from the board
network to your remote network. If a connection isn't established,
then there is some network config issue, most likely a NAT forward
rule missing on the remote end. While pinging is valid, if there is a
NAT forward rule to access this specific port, a telnet will also
certify that a connection to that port specific, using the TCP
protocol is possible.

I noticed that you have enabled Nut Discovery, what does the nutdisc
tool gives you as your board's setup address? Does the gateway IP is
correct? And mask? According to your earlier emails, the only way your
board at 192.168.1.x would be able to access your gateway at
192.168.0.254 were if it was using an 255.255.0.0 mask. Also, notice
that your gateway must use the same mask or it won't talk back to the
board ;)

Kind Regards,
    Thiago A. Correa



More information about the En-Nut-Discussion mailing list