Jump to content
Sign in to follow this  
houseonfire

TCP Connection Alert

Recommended Posts

houseonfire

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,

;SERVER
$g_IP = "127.0.0.1"

; Start The TCP Services
;==============================================
TCPStartUp()

; 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

Share this post


Link to post
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
Sign in to follow this  

×