Solved

Access Messenger via sockets!!!

Posted on 2003-12-11
4
178 Views
Last Modified: 2010-04-15
     Hi! I would like to ask if i could access the messenger (net send command) via WinSOckets. Does this service listen to a well specified port? I'm asking all these because i would like to make a program that sends its own messages to the host's screen using its IP address. And another question took. Can i access this service via Unix sockets? I mean do I have the ability to establish a connection with a Win server through a Unix or Linux client that connects to the apropriate port?

      Thanks!!!
0
Comment
Question by:digineo
4 Comments
 
LVL 6

Accepted Solution

by:
MannSoft earned 90 total points
ID: 9921106
I don't know them off-hand, but if you search google for a phrase like "stop messenger spam" you'll probably find resources that explain which TCP and UDP ports to close in order to prevent messenger spam.  Based on that, you'll know which ports your program should connect to.  If i remember right it was one of the 137,138 or 139 ports.

As for using unix sockets, as long as you use the proper protocol you should be able to do it from any platform, so yes unix sockets will work.
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 9925883
>I would like to ask if i could access the messenger (net send command) via WinSOckets.
There is an easier way
system ( "net send ..." );

>Does this service listen to a well specified port?
I am sure it does, but I do not know the port

>Can i access this service via Unix sockets?
You mean sending net send messages to a win machine from a unix machine ... well that is indeed possible as all messenger service expects is a particular format of message to arrive on the port that it is listening to ... All you need to do is find out the format of the message... If the format is proprietary, then you are out of luck
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now