CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

UDP access for internet and ARP error

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
alikaca



Joined: 01 Mar 2007
Posts: 5

View user's profile Send private message Send e-mail

UDP access for internet and ARP error
PostPosted: Fri Mar 02, 2007 4:34 am     Reply with quote

hi, i m using tcp/ip stack. udp protocoll is very good working in local network, i have a server on the internet but i dont access with udp protocol. my local network ip is 10.0.0.x. server adress is 84.51.47.xxx
i send a arp request for local network. not any problem very nice, but i send a arp request for my server (on the internet) . Not incoming any answer. only go default gatewaye. how can i communication with my server(ip=84.51.47.xxx)? help me place thank you.
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Fri Mar 02, 2007 7:11 am     Reply with quote

The internet does not propogate public IP addresses such as network 10.x.x.x This means that no internet routers can find a route back to your network.

If you are connected to the internet it means your router is configured for Network Address Translation which is mapping you real world ip address (the one connected to your ISP) to your internal network 10.x.x.x

Your router can be configured to forward traffic arriving in on the external (ISP) interface destined to port xyz to some internal address you have configured in the routers port mapping table (say 10.0.1.24) for port xyz.

If your real IP address (the one facing the service provider) is 55.66.77.88 and the port number is 123 then any packets arriving to the router on the external interface destined for 55.66.77.88:123 will be forwarded to 10.0.1.24:123 on you local interface.

Bottom line - you need to configure "port forwarding" aka NAT on the router.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
alikaca



Joined: 01 Mar 2007
Posts: 5

View user's profile Send private message Send e-mail

i make to a test
PostPosted: Fri Mar 02, 2007 11:52 am     Reply with quote

i m try with router but not workig. i m sendig a icmp for 84.51.47.xxx (ping) not incoming answer. Sad i m watch the network packets with a network sniffer.
example
i m sendig a udp packet for local network(10.0.0.5)
port 1000
10.0.0.5:1000 not problem . data is very good arrive to 10.0.0.5

i m sending a udp packet for WAN(internet 84.51.47.200)
port 1000
84.51.47.200:1000 problem
my router adres is 10.0.0.2. my router is make to broadcast but not incoming any answer.

i make to nat and port forwarding on the my router. but not working

i think , but i don't find a solution
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
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


Powered by phpBB © 2001, 2005 phpBB Group