Re: [Qt] File transfering and others
Judging from Your question I think Your solution won't work on actual network.
You probably testing Your server/clients in the LAN network and everything is working fine, but on actual network You need to use NAT Traversal. The problem is that most users are behinde routers (they don't have external IP assigned to them) so You don't know IP of particular user/client in LAN and thus can't send anything to them (not only a file but a messages also - if Your server supports sending messages arrived to the server while user was off-line).
Example 2 users use Your clients, they are behind router with internal/LAN Ip's 192.168.0.2 - 192.168.0.3. How do You send a file file/message to one of them?
See/study udp hole punching, UPnP, NAT-PMP, NAT traversal etc. Or simply use ready solution/class.
Sorry for not specific answer but your question is broad.
Last edited by Talei; 5th November 2010 at 19:39.
Reason: spelling corrections
In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
The advance of computerization however, has not yet wiped out nations and ethnic groups.
Bookmarks