Solved

Access Messenger via sockets!!!

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
posix semaphore deadlock 13 114
C: GetDiskFreeSpaceEx() for default drive 14 104
chcp 65001 File encoding 66 230
Memory going from 12gb to 64gb or 96gb. worth it? 15 129
Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
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…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements 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.

914 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

19 Experts available now in Live!

Get 1:1 Help Now