Sign in to follow this  
Followers 0
theguy0000

TCPRecv() all IP addresses

10 posts in this topic

#1 ·  Posted (edited)

is there any way to TCPRecv all messages sent to the computer from any IP address on a set port?

Matt :lmao:

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites



I would believe that you have to iterate each address, and create a socket on each.


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

that's the only way?

darn.

Matt :lmao:

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

there must be a way to do this.

a client program, which will run on any computer, sends messages via tcp to the server program, on my computer, running 24/7.

isn't there any way for the server to recieve and interpret all recieved messages?

Matt :lmao:

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

Wouldn't AutoIt Smith's Remote Server Beta server work?

http://www.autoitscript.com/forum/index.php?showtopic=19468

As far as I can tell, the server can hold up to 100 connections (pending connections?) as is, each socket being part of an array. All you have to do is have the client, and connect it to the server.... I don't see why that wouldn't work.

Share this post


Link to post
Share on other sites

You can use this and by editing MaxConnections you can get more then 100, and it allows $MaxConnections in the amount the can be concurrently connected.

AutoIt Smith

Share this post


Link to post
Share on other sites

Is it really the number of connections? Or is it actually pending connections as the helpfile says.

TCPListen ( IPAddr, port [, MaxPendingConnection] )

MaxPendingConnection: Maximum length of the queue of pending connections. By default the maximun reasonable value will be set.

That sure makes it sound like only one can be connected at a time, with up to 99 waiting to connect (for a total of 100).

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

ok from that code:

Func TCPStartServer($Port, $MaxConnect = 1)
    Local $Socket
    $Socket = TCPStartup()
    Select
        Case $Socket = 0
            SetError(@error)
            Return -1
    EndSelect
    $Socket = TCPListen(@IPAddress1, $Port, $MaxConnect)
    Select
        Case $Socket = -1
            SetError(@error)
            Return 0
    EndSelect
    SetError(0)
    Return $Socket
EndFunc;==>TCPStartServer

That means it is TCPListen()-ing to your own IP address right? How does that accomplish this?

Matt :lmao:

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

I believe that would be listening ON your own IP address. It works, I use it.

Share this post


Link to post
Share on other sites

hmm. ok, thanks.

Matt :lmao:


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

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  
Followers 0