Click here to Skip to main content
15,887,376 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hello. I am a new user to c# i have GUI application that works perfectly with sockets on lan network to my hardware that connected to router. but now i wan be able to talk through internet to the router .
Posted
Comments
[no name] 1-Feb-12 13:37pm    
Did you have an actuall question?
Member 7981186 1-Feb-12 13:45pm    
I have an Mcu (Stellaris cortex m3) that connected to router with cable and now if i want to talk with it i just open my c# app ,changing in my laptop network to same as router then i am opening wirlees connetion on my laptop conecting to it.
run my app thru udp socket and tha's it..
Now i want conect this router to internet and than be able oppenmy app at home and able to speak with the router like before.
Thx
Kreagan Naicker 1-Feb-12 13:40pm    
You request is extremely vague as to what you wish to accomplish. What hardware are you using or wanting to use? What is the objective of this application?

Also based on your description above, connecting to a router over the internet sounds like a security risk, why would you want to do that?
Member 7981186 1-Feb-12 13:45pm    
I have an Mcu (Stellaris cortex m3) that connected to router with cable and now if i want to talk with it i just open my c# app ,changing in my laptop network to same as router then i am opening wirlees connetion on my laptop conecting to it.
run my app thru udp socket and tha's it..
Now i want conect this router to internet and than be able oppenmy app at home and able to speak with the router like before.
Thx
Christian Graus 1-Feb-12 13:48pm    
None of this makes any sense. What does 'speak to the internet' mean ? Do you want to download or upload via FTP ? Read mail ? Send your own data across the internet ? What is your actual goal ?

1 solution

Well, the most logical way to do that, is to set up a web server and host a web service, which you can then easily call using established mechanisms, to send messages to turn lights on, or whatever. You could even host it at a third party and just have code at home call it regularly to ask it if it needs to change anything. The other way requires a static IP address on the web, then you can write code to connect to that address using any mechanism you like.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900