|
-
Feb 27th, 2007, 04:16 PM
#1
Thread Starter
Fanatic Member
[RESOLVED]Ip addresses and winsock
Ok so me and my friend are making an file sharing and I.M. program that only sends messages and files to one central computer and me and him will retrieve our files and messages off that computer. But we need to know how can we send files and messages using winsock if we know the ip of the central computer.
Last edited by Mxjerrett; May 13th, 2007 at 01:25 PM.
If a post has been helpful please rate it. 
If your question has been answered, pull down the tread tools and mark it as resolved.
-
Feb 27th, 2007, 04:26 PM
#2
Re: Ip addresses and winsock
Well, when you connect to any server, you need to know server IP, and port number...
What exactly are you asking about ?
You don't know how to send a file through winsock ?
Is the server a program made by you (did you make the server already ?) ?
Did you do anything ? (what have you done so far ?)
-
Feb 27th, 2007, 04:28 PM
#3
Thread Starter
Fanatic Member
Re: Ip addresses and winsock
I don't know how to do anything with winsock. I have not started yet.
If a post has been helpful please rate it. 
If your question has been answered, pull down the tread tools and mark it as resolved.
-
Feb 27th, 2007, 04:33 PM
#4
Re: Ip addresses and winsock
If I'm not mistaken there are sample client/server winsock projects in the codebank.
-
Feb 27th, 2007, 04:35 PM
#5
Re: Ip addresses and winsock
In that case, you should start learning from tutorials, unfortunatelly I don't know any from the top of my head, but if you do a search on the forums, I'm sure you will find posts with links to tutorials.
If you want to see some programs that use winsock, here are 2 programs that you might find usefull:
Web Server: http://www.vbforums.com/showthread.php?t=283785
Chat program: http://www.vbforums.com/showpost.php...2&postcount=43
Send files (client/server program): http://www.vbforums.com/showthread.php?t=377648
-
Feb 27th, 2007, 04:44 PM
#6
Thread Starter
Fanatic Member
Re: Ip addresses and winsock
so is it possible to send it to my other comp even if it isnt the same network.
If a post has been helpful please rate it. 
If your question has been answered, pull down the tread tools and mark it as resolved.
-
Feb 27th, 2007, 04:51 PM
#7
Re: Ip addresses and winsock
In any case, you need to know the IP, and Port number.
If it's on the same network, the port has to go through the firewall (if firewall is enabled that is...)
If it's through the internet, the server computer has to be routed properly (the router has to be configured so that it routes the server's port number, to the server), and of course, the same story with the firewall (i.e. it has to be configured so that the port has to go through the firewall)
So, in short, yes, you can send a file to any computer in the world, if everything it's configured properly (router + firewall)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|