Sign in to follow this  
Followers 0
FATIHTALI

Port test program

6 posts in this topic

Hello. we are using telnet for port test with command prompt. if it connect with telnet we havent got port problem. If we can not connect we have port problem we are checking port on firewall or VLAN. I want to make it automatic. I couldnt forun it in help and site.

Can I see result in messagebox. 10.50.50.50:7655 No Problem. 10.50.50.51:445 Problem. Can I use If command in Msgbox?

Best regards FATIH

example: telnet 10.50.50.50 7655 (for VIS)

telnet 10.50.50.51 445 (for MS-DS)

telnet 10.50.50.90 80 (for TCP)

telnet 10.50.50.70 27000 (for UG license)

telnet 10.50.50.52 7655 (for VIS)


Startup Agent It is my small Startup Agent. You can install programs on startup Domain pc without Admin rights.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi.

Hello. we are using telnet for port test with command prompt.

Have a look at the help file: TCP*() functions.

Regards, Rudi.

Edited by rudi

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

Hi.

Have a look at the help file: TCP*() functions.

Regards, Rudi.

I tried yesterday nice. Also I checked help file. I couldn't make program.

:) :)


Startup Agent It is my small Startup Agent. You can install programs on startup Domain pc without Admin rights.

Share this post


Link to post
Share on other sites

I tried yesterday nice. Also I checked help file. I couldn't make program.

:) :)

Hm, what did you read up, eh?

This lines try to connect to port 80 at IP Address 192.168.188.1, that's a webserver in my LAN. Change these values to what ever you need to test for. BTW: This is almost straigt from the help file!

$ip="192.168.188.1"
$port=80

TCPStartup()
$socket=TCPConnect($ip,$port)
if $socket = -1 Then
    MsgBox(48,"Failing","Can't connect to IP=" & $ip & ", Port=" & $port)
Else
    MsgBox(64,"Succeeded","Connect to IP=" & $ip & ", Port=" & $port & " successfully established.")
EndIf
TCPShutdown()

You DID find these topics in autoit help?

Please go to

Autoit Help File

-> function reference

-> network functions

-> read up all of them, try the example programs :)

Play around with the examples, that's IMHO the very best way to start :P

Have a nice weekend, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

Thanks for help. You are really greate.

Hm, what did you read up, eh?

This lines try to connect to port 80 at IP Address 192.168.188.1, that's a webserver in my LAN. Change these values to what ever you need to test for. BTW: This is almost straigt from the help file!

$ip="192.168.188.1"
$port=80

TCPStartup()
$socket=TCPConnect($ip,$port)
if $socket = -1 Then
    MsgBox(48,"Failing","Can't connect to IP=" & $ip & ", Port=" & $port)
Else
    MsgBox(64,"Succeeded","Connect to IP=" & $ip & ", Port=" & $port & " successfully established.")
EndIf
TCPShutdown()

You DID find these topics in autoit help?

Please go to

Autoit Help File

-> function reference

-> network functions

-> read up all of them, try the example programs :)

Play around with the examples, that's IMHO the very best way to start :)

Have a nice weekend, Rudi.


Startup Agent It is my small Startup Agent. You can install programs on startup Domain pc without Admin rights.

Share this post


Link to post
Share on other sites

Thanks for help.

You are welcome

You are really greate.

Not really. I just work with networks all the time, and I did some Pascal coding long years ago. Regarding my autoit coding skills I'm still a beginner, too. :) Maybe at a somewhat, a little bit higher level :), but still a beginner... :)

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

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