Hi guys
I don't have a Netburner product (not yet, atleast) but I hope this is an easy and generic problem to solve.
I have an evaluation board (from Micrium) with an ethernet connector and I've gotten the example code to run on it. The board is connected to one port of the router just like my home PC.
The home PC has an IP 192.168.1.300 and the board has a similar IP. These are internal IP addresses as you know.
The Eval board has a little server running inside because its able to serve a web page containing the status and control information. So for example if I type this on my home PC's browser, I can see the page being served by the Eval board:
192.168.1.305/index.html
What I want to do is the next step: I want to do the same thing from any computer in the world and connect to the Eval board. I know that most likely, I would type my actual IP address and that would travel on the internet and go to my router which would send it to the Eval Board. I don't know what I need to do to make that happen.
It may be that this board can only connect to another computer through the router its connected to. It has 3 settings in its C program:
ip = "192.168.1.105";
mask = "255.255.255.0";
gateway = "192.168.1.1";
I tried changing the IP to my actual real world IP and that doesn't work. When I do that, I try a proxy browsing site (hidemyass) to connect to my computer because I don't have another computer with another IP address. Could it be some kind of port blocking? I have no idea. I'm totally new to ethernet/networking/servers/routing. I've been trying to read information on how routers work (interesting stuff) and I've recently ordered a number of books related to topics about Embedded + internet.
I also tried installing Apache on my computer and "localhost" works in the browser.
I tried contacting Micrium about this but my first query to them was just getting the example to work and I got that figured out on my own (just had to browse to the local IP) and then I thought this might be a generic problem as well, since its connecting locally, but now I need to do the same thing remotely so I can access it from anywhere in the world.
UPDATE: Ok. So I got my home PC to be connected from outside. I learnt we have to set up port forwarding, and thats how it knows how the incoming traffic is routed for that port (80).
I did the same thing on the Eval Board, which is also set to 80 but it didnt work. Oh well.
I might try again later.
UPDATE 2: Woohoo, I got it. I had to connect using some other network and not the proxy which somehow was working for the PC's server, but not for the board's server.
It might be that the proxy was trying to connect to the board in a "strict" kind of way and the board's server was not giving what it needed.
So everything looks like its working correctly. Very nice.