Click here to Skip to main content
15,921,606 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please open the link below.

http://isolasoftware.it/2012/05/04/how-to-send-live-data-from-a-c-desktop-application-to-web-using-websockets/[^]

this sample only work on my localhost ..
i want its should work if i use other pc iP ..
why its not working when i use other pc ip?? Yeah other pc is on other different network .
Posted

You are trying to open the url in your browser http://localhost:8070?

You have to replace localhost with the public ip of the servers network.
In the server network you have to allow connections to the port 8070.

Internet (Public IP) --> Router (Port Forward to Server-IP) --> Server (IP)
 
Share this answer
 
Comments
ShortProgrammer 11-Dec-14 7:27am    
thank you
ShortProgrammer 11-Dec-14 7:28am    
if i want server also could send little text that connected client,then what should i have to do ??
mavarazo 15-Dec-14 3:28am    
If I unterstand you correctly, this has nothing to do with configuration. You just have to code this.
You cannot connect to other pc's because it is probably on a network behind a router using NAT (http://nl.wikipedia.org/wiki/Network_address_translation[^]). You would need to configure port forwarding on the router to make it possible to connect. (http://en.wikipedia.org/wiki/Port_forwarding[^])

Good luck!
 
Share this answer
 
Comments
ShortProgrammer 11-Dec-14 7:32am    
Most of peoples here just give the solution in theory of Wikipedia.. the best way to give solution in pragmatically . one program line is equal to 100 page of theory, you know LOL.. and i think mostly programmer feel easy to understand quickly by code rather than theory .

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