Link to home
Start Free TrialLog in
Avatar of kawa
kawa

asked on

IP confusion


I am a little bit confused and I hope someone will kindly help me.
Please execuse me for the following simple questions cause  I am trying to write my first winsock program.


I have 2 PCs (WIN95)  connected to the Internet using ISP and modem. Here are the questions:

1. Is the IP address of each of them a local one and I cannot use it to send something directely to them from another machine on the Internet using WinSock?
2. Do they get a new IP address each time they connect to the Internet (Dial-up)?
3. Is there anyway that I can code a program that send a file or text from one of them to the other without using a server or broker?
4. What are the answers to the above 3 questions in case that these 2 clients are using NIC and behind a firewall or broxy?

Is there any example for client to client direct communications ?
ASKER CERTIFIED SOLUTION
Avatar of snoegler
snoegler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kawa
kawa

ASKER

Thanks for the explaination.
I will accept your answer but I hope you can tell me your idea if I have one  client behind a company firewall and the other is using modem through ISP . can I make them direcely send files to each other  ?
You need to know if the machines behind the firewall completely hidden to the internet.
If yes, that's bad luck.
If no you'll probably have to authentificate the incoming request, the protocol for that depends
on the type of firewall. You should be able to get a documentation on this (perhaps the
network administrator can explain this to you, or the docs on the firewall has information
about that - if not, you better ask some hackers, they'll know how to do it ;) )
I can't help you any further without information about the firewall. Perhaps someone other can,
but i think it would be helpful to all who read this question if you'd get this information and
post it here.
Good luck =o)
Avatar of kawa

ASKER

Thank you.
I was hoping to make a general solution that will work with _any_ firewall. It looks now more complicated that I thought. I will check what the hackers do and if I get something I will share it with all the peoples here. I also hope that some more experts can post additional information on that subject. Thanks again

If you want other experts to post additional information, you should not have accepted this
answer. Now anyone who tries to read it gets some points deducted from the account.
Thanks, though :)