Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Online Notification

Posted on 2001-06-13
7
Medium Priority
?
258 Views
Last Modified: 2013-11-13
I'm making a simple chating app using winsock. The only thing is that how will I know which of my friends are online and their ip address? Thanx..
0
Comment
Question by:hotbird3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 6

Expert Comment

by:simonbennett
ID: 6185232
Hi

You won't! This is a Peer to Peer operation similar to napster. I have written a similar application and you will need a *server* app that listens to a static port on a static IP address. Your friends/users need a small client app that will connect to your server app, which will be listening for them using the standard winsock events. When your code detects a connection you can derive the IP address. Now you will have to do the same (connect to server via client etc) and you will be able to see the IP address of anyone who is using your client software.

This assumes however that you all have dynamic IP from your ISP's - if none of you do (which is unlikely) you can connect direct to eachother. Also beware of firewalls - they dont like stuff being put through abnormal port numbers!

HTH

Simon
0
 
LVL 3

Accepted Solution

by:
sridhar_PJ earned 200 total points
ID: 6185585
0
 
LVL 5

Expert Comment

by:AndrewDev
ID: 6185821
This app works well, I suggest you take a look at its code

Create a chat room using the Winsock control.
http://www.freevbcode.com/ShowCode.Asp?ID=137

Regards
Andrew

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 5

Expert Comment

by:AndrewDev
ID: 6185825
This ASP application is also worth a look

http://www.freevbcode.com/ShowCode.Asp?ID=858
0
 
LVL 5

Expert Comment

by:AndrewDev
ID: 6185828
or this one
http://www.freevbcode.com/ShowCode.Asp?ID=2742

Sorry for the multiple posts
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7136015
Hi hotbird3,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Split points between: sridhar_PJ and AndrewDev

hotbird3, if you think your question was not answered at all or if you need help, you can simply post a new comment here.  Community Support moderators will follow up.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7181593
Per recommendation, force-accepted.

Netminder
CS Moderator

AndrewDev: points for you at http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20328646
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question