Jump to content

TCP Connection Alert

Recommended Posts

I'm trying to make a script that tells me when i get a connection from someone, on a certain port.

I looked in the help file and found the main part,

$g_IP = ""

; Start The TCP Services

; Create a Listening "SOCKET"
$MainSocket = TCPListen($g_IP, 65432,  100 )
If $MainSocket = -1 Then Exit
TrayTip( "Connection", "Connection from"& THE IP IM GETTING A CONNECTION FROM ,5)

That last line obviously wont work. hah

How do i get the IP of the person who is connecting to it to be displayed in the TrayTip

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...