Click here to Skip to main content
15,892,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I m new to socket programming. I have learned basic step creating server & client and sending text over lan. But how to send text and files over internet.
Posted
Comments
[no name] 5-Aug-12 13:28pm    
It's the same whether a LAN or Internet.
Tahir Sayyad 5-Aug-12 13:35pm    
IN CASE OF LAN CODE WORKS FINE BUT SAME CODE WHEN I WILL USE FOR INTERNET IP IT RESULT INTO ERROR UNABLE TO REACH DESTINATION
[no name] 5-Aug-12 17:19pm    
Why are you screaming?

1 solution

The smartest thing to do is to use an FTP library because transferring files is already implemented by plenty of libraries.
 
Share this answer
 
Comments
Tahir Sayyad 5-Aug-12 13:19pm    
I have to also certain type of commands to clients such checking Mac address serial number of app etc sheathed it is appropriate to use ftp.
Sergey Alexandrovich Kryukov 5-Aug-12 19:08pm    
No, but you asked about file transfer only in first place. Would prefer to waste people's time? You say you learned sockets, but with sockets you can transfer any data, so what's the problem?
--SA
Tahir Sayyad 6-Aug-12 0:39am    
SORRY BROTHER MY CODE DON'T RUN WHEN I SPECIFY DYNAMIC IP GOT FROM WHAT IS MY IP I AM DOING FOR THE FIRST TIME AND DON'T UNDERSTAND WHAT IS PROBLEM I HAVE COPIED CODE FROM WEB SOCKET CLIENT AND SOCKET SERVER EXAMPLE. IT WORKS ON LAN IP BUT IT DOESN'T WORK ON WAN IP
Philip Stuyck 6-Aug-12 2:07am    
There is no need to shout. All capitals is shouting.
Anyway before coding you have to do some elementary stuff and see if your destination is reachable to begin with. Is there a firewall, can you ping your destination ?
Tahir Sayyad 6-Aug-12 6:18am    
Thanks for you reply. My problem is solved.

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