mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2014
Posts: 215
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
hello, i am trying to get my bot to listen for any information coming in on port 90. i did "/socklisten webserver 90" and it seems to be in use, so to test it i try to make a simple script in a second mirc client (it's on a different computer and network) but i don't see any echo of an incoming request. please tell me if anything's wrong

client listening:
Code:
on *:socklisten:Webserver:{ 
  echo -s hi
sockaccept Webcon $+ $rand(1,99999) }


client trying to test:
Code:
alias sock {
  sockclose name
  sockopen name [ip] 90
}
on *:sockopen:name: {
  sockwrite -n name test
}



#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
To be connectable from your external IP you need to forward ports on your router (www.portforward.com), you can use the loopback address 127.0.0.1 to connect to yourself.


Link Copied to Clipboard