Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Connecting the Easy TCP/IP board to the internet.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> Easy TCP/IP Archive
View previous topic :: View next topic  
Author Message
andrho

Bascom Member



Joined: 29 Aug 2005
Posts: 4

germany.gif
PostPosted: Mon Aug 29, 2005 5:51 am    Post subject: Connecting the Easy TCP/IP board to the internet. Reply with quote

Can someone who has actually connected their webserver to the internet please provide a description of what is required.....

I have tried unsuccessfully, and there seems to be little mention on the web of how to actually connect an embedded webserver to the net.

What I have done so far:

Im using a registered version of Bascom AVR 1.11.7.4

I have a Easy TCP/IP working as a webserver across my lan, it has a fixed IP address (192.168.1.10) (gateway 192.168.1.1), it is accessable from the 3 PC's on my lan including the wireless connection to the shed!

I have and ADSL internet connection with a dynamic IP address (and my ISP blocks ports 80, 25 etc to prevent webservers at home!)

I have a ASUS Router, that is configured for fixed IP addresses across my LAN. (192.168.1.1), and DHCP to the modem. All PC's have internet access via the router.

My router has in-built support for dynamic IP hosting via dyndns.org.
I have set up an account which points to the dynamic IP set for the modem.

I have set up the virtual server on the router to forward to the IP address of the webserver using port 5000 (not blocked by my ISP)

When I type avr.kicks-ass.net (the web address for the dynamic DNS service) using my work PC (separate location) - I get nothing

If I try it on a PC on the LAN I get the login screen for the router..

If anyone can point me in the right direction - it would be much appreciated, the weeks of trial and error for all the various settings is starting to get to me!!

_________________
Regards,

Andrew
Back to top
View user's profile
sayang

Bascom Member



Joined: 05 Jan 2005
Posts: 53

netherlands.gif
PostPosted: Mon Aug 29, 2005 2:37 pm    Post subject: Reply with quote

First, this is not a Bascom problem.

Second, if your ISP blocks ports 80, 25 etc to prevent webservers at home! you should use another ISP.

Thirth, you have to setup your ASUS Router with NAT to point to your
embedded webserver IP adress.

Nat entry would look like this 0.0.0.0:1000 192.168.1.10:80
Were 0.0.0.0 is your external IP adres and 1000 is the port. This basicly tells the router to forward any incoming traffic on port 1000 to port 80 of your embedded webserver.

With http:\\avr.kicks-ass.net:1000 you should then be able to "see" your embedded webserver.
Back to top
View user's profile
andrho

Bascom Member



Joined: 29 Aug 2005
Posts: 4

germany.gif
PostPosted: Tue Aug 30, 2005 1:11 am    Post subject: Reply with quote

Thanks for your reply,

have you actually got an Easy TCP/IP board connected to the internet??

> First, this is not a Bascom problem.
As I said - The Easy TCP/IP board is working, it serves a weather station webpage, and has done so on my lan for about a year or so...

>Second, if your ISP blocks ports 80, 25 etc to prevent webservers at >home! you should use another ISP.
Why does it matter??? Most ISP's here in Oz block these ports for residential services. I dont fancy paying $20 more a month for a business account without any port blocking just to play with this webserver.

>Thirth, you have to setup your ASUS Router with NAT to >point to your embedded webserver IP adress.

>Nat entry would look like this 0.0.0.0:1000 192.168.1.10:80
>Were 0.0.0.0 is your external IP adres and 1000 is the port. This basicly >tells the router to forward any incoming traffic on port 1000 to port 80 of
>your embedded webserver.

>With http:\\avr.kicks-ass.net:1000 you should then be able to "see" your >embedded webserver.


My ASUS router has three subsections in NAT settings:
1). Port triggering
2). Virtual Server
3). Virtual DMZ

I have enabled the Virtual server, with the following settings:
Local IP address (of the web server 192.168.1.10)
The Port range (my case just 5000)
Protocol (enabled both UDP and TCP)

in theory http:\\avr.kicks-ass.net:5000 should work... but it doesn't.

The router log list the dyndns service is being updated with the modem IP address, and pinging avr.kick-ass.net does reveal the modems correct IP address.

I have a basic understanding of what is required, it just the mechanics of getting it to work...

_________________
Regards,

Andrew
Back to top
View user's profile
sayang

Bascom Member



Joined: 05 Jan 2005
Posts: 53

netherlands.gif
PostPosted: Tue Aug 30, 2005 9:18 am    Post subject: Reply with quote

I don't know your router but I have a feeling that it doesn't forward the port to the The Easy TCP/IP board. I understand that you have a separate modem and router, are there any settings in the modem you would need to change ?

I have a Easy TCP/IP board but my setup is completly different.

I use a combined modem/router that forwards a SSH connection to a linuxbox which in return forwards it to the Easy TCP/IP board. This allows me to acess the Easy TCP/IP board with an encrypted connection.
Back to top
View user's profile
tomi

Administrator



Joined: 22 Feb 2005
Posts: 155
Location: Universe

blank.gif
PostPosted: Wed Aug 31, 2005 9:23 am    Post subject: modem and router Reply with quote

please post here type of your modem and your router (if you have both not in one device), I mean manufacturer or shop name ex. ASUS WL-1111 ... I can look on it or send PM

/Tomi
Back to top
View user's profile Visit poster's website
andrho

Bascom Member



Joined: 29 Aug 2005
Posts: 4

germany.gif
PostPosted: Wed Sep 07, 2005 6:44 am    Post subject: Re: modem and router Reply with quote

Tomi,

I have a ASUS WL-500g router and an D-Link DSL-302G ADSL modem.

links to manuals...

http://support.asus.com/download/download.aspx?SLanguage=en-us
http://www.dlink.com.au/tech/drivers/files/modems/dsl302g.htm

any help would be appreciated - no doubt it is something small I am missing..

tomi wrote:
please post here type of your modem and your router (if you have both not in one device), I mean manufacturer or shop name ex. ASUS WL-1111 ... I can look on it or send PM

/Tomi

_________________
Regards,

Andrew
Back to top
View user's profile
sayang

Bascom Member



Joined: 05 Jan 2005
Posts: 53

netherlands.gif
PostPosted: Wed Sep 07, 2005 10:07 am    Post subject: Reply with quote

I assume you already did the steps from this manual:

How to open ports or enable DMZ in DSL-302G

http://www.dlink.com.au/tech/drivers/files/modems/DSL-302G_Open.ports_DMZ.zip
Back to top
View user's profile
andrho

Bascom Member



Joined: 29 Aug 2005
Posts: 4

germany.gif
PostPosted: Wed Sep 07, 2005 1:25 pm    Post subject: Reply with quote

yes.. done that..

sayang wrote:
I assume you already did the steps from this manual:

How to open ports or enable DMZ in DSL-302G

http://www.dlink.com.au/tech/drivers/files/modems/DSL-302G_Open.ports_DMZ.zip

_________________
Regards,

Andrew
Back to top
View user's profile
george2002

Bascom Member



Joined: 23 Nov 2005
Posts: 74
Location: Krakow

poland.gif
PostPosted: Mon Mar 20, 2006 2:40 pm    Post subject: Reply with quote

andrho can you post here you code to drive that web based weather statinon because i'm interested to do same project, your code can help me much Smile

regards
george2002

_________________
Hi 4 all Smile
Back to top
View user's profile Visit poster's website
bfdegraaff

Bascom Member



Joined: 15 Nov 2005
Posts: 72
Location: Brazil

brazil.gif
PostPosted: Wed Apr 12, 2006 3:10 pm    Post subject: Reply with quote

Hello,

If you want to connect your Easy TCP IP to the Internet,
first check if you can see it in your local network.

Program the webserver.bas example in your EASY TCP board.

Make sure that your local network is in the same IP range as
the TCP ip board.

If your local is 192.168.2.xxx then you should modify

Config Tcpip = Int0 , Mac = 00.40.12.34.56.78 , Ip = 192.168.0.8 , Submask = 255.255.255.0 , Gateway = 192.168.0.1 , Localport = 1000 , Tx = $55 , Rx = $55 , Twi = &H80 , Clock = 400000
____________________________________________________________^^____________________________________________^^
_____________________________________________________change to 192.168.2.8___________________________192.168.2.1

Change the IP and the Gateway. (you can find the gateway in
your windows network config) (I will use .2.8 in this example)

After that connect to:
http://192.168.2.8:5000/index.htm


Then goto your router config... mostly 192.168.2.1 and
set PORT FORWARDING (APPLICATION PORTS) and
forward port 5000 to 192.168.2.8.

The goto http://www.dnsstuff.com and see your
Internet IP (top right) and use that ip
http://13.121.123.250:5000/index.htm (example)
to connect.

Best regards,

Barry de Graaff

(My board is currently not connected, but it use to
work for months)

_________________
______

Barry de Graaff is a micro electronics student,
formerly on work emplacement at MCS Electronics.

www.barrydegraaff.tk/edb
Back to top
View user's profile Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> Easy TCP/IP Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum