Solved

Access Messenger via sockets!!!

Posted on 2003-12-11
4
181 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
memory leak detection 9 83
negation in C function 14 153
Problem to scan all sheets 3 104
Why isn't object file created? 6 59
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
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.

809 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