mIRC Home    About    Download    Register    News    Help

Print Thread
#176462 10/05/07 07:46 AM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
socklisten local
server localhost $sock(local).port

It's giving me:

* /socklisten: port error (line 9, script1)

any ideas guys?

Last edited by pouncer; 10/05/07 11:26 AM.
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
Is the port number available (see /help $portfree)?

Is the port number valid? I'm not sure if 65535 or 32767 (per NIC) is the limit, there is no port 100000 though... wink

Also I assume you are writting an IRC server, and that why you are using /server???

Last edited by NaquadaServ; 10/05/07 10:20 AM.

NaquadaBomb
www.mirc-dll.com
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
its a socket connection to a server, im opening up a localhost socket for the clientside
it worked on fine on my laptop,
but i keep getting socklisten error on this new pc


and also when i try to open sockets to websites on port 80, i get something like

socket error (sock.3849) 4 [0] Unknown Error

Last edited by pouncer; 10/05/07 11:30 AM.
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
Originally Posted By: pouncer
its a socket connection to a server, im opening up a localhost socket for the clientside


If I understand you correctly, then you shouldn't be listening for incoming connections, you should be using /sockopen for an outgoing connection. /server is for connecting to an IRC server only. Did you follow any of my advice?

You are also not specifing a port with /socklisten, perhaps you should read the help file regarding socket usage... /help sockets


NaquadaBomb
www.mirc-dll.com
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
What i'm doing is opening up a localhost socket for a server that DOESNT support connection by /server -m ..

It's an IRCX server which requires auth, so I open a localhost server, and seperate channel sockets etc. I then relay the information from the channel socket to the localhost. Hixxy will know exactly what I'm on about, but i'm not sure if it's my PC causing the socket problems then I mentioned.

Last edited by pouncer; 10/05/07 01:32 PM.
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
The socklisten command works fine here. Have you tried specifying a port in the command?

/socklisten mysock 12345

If none of the other socket commands work, it is likely a problem with the PC. If you are using Vista, this could be another Vista/mIRC bug. Try:

/sockopen testsock www.google.com 80

-genius_at_work


Link Copied to Clipboard