problem in communicating with a device through TCPIP
-
hai all masters, here is my problem. i want to access a hardware device(server) through TCPIP. i know its ip address, and i want to write an application(client) to access it. but i donot know the port number. is there any way to access it with out knowing the port number? if any more clarity is required, then i can provide. please give your views on this. thanks in advance.
chandu004 wrote:
is there any way to access it with out knowing the port number?
Of course: (1) choose randomly a port (2) are you able to communicate with the device? (3) if the answer is yes then you're a lucky guy. (4) if the answer is no, goto point 1. That's called
Montecarlo TCP/IP
. :-DIf the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
chandu004 wrote:
is there any way to access it with out knowing the port number?
Of course: (1) choose randomly a port (2) are you able to communicate with the device? (3) if the answer is yes then you're a lucky guy. (4) if the answer is no, goto point 1. That's called
Montecarlo TCP/IP
. :-DIf the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarkethanks pallini, of course i have tried that before posting it here. i tried from 0 to 10000. but no use any way let me provide you more details such that, you can help me. 1.the device is access control system(card swipe system) in our office. 2.the vendor has provided his software, which will download the swpe logs to the PC. 3.for some reasons, i wanted to have my own software for that. so, i did the following things. 1.i made a session in hyperterminal using tcpip with the device ip and default port number 23. 2.then the device responded with welcome note, version number and a login prompt at my hyperterminal. 3.so here, i under stood that, i have to provide some username and pwd. so i tried to simulate the server(the device) through my application and communicate with his software and find the username and pwd. but the application is unable to communicate with my simulator. any ideas on this? please excuse me members, if my post is a bit lengthy.
-
thanks pallini, of course i have tried that before posting it here. i tried from 0 to 10000. but no use any way let me provide you more details such that, you can help me. 1.the device is access control system(card swipe system) in our office. 2.the vendor has provided his software, which will download the swpe logs to the PC. 3.for some reasons, i wanted to have my own software for that. so, i did the following things. 1.i made a session in hyperterminal using tcpip with the device ip and default port number 23. 2.then the device responded with welcome note, version number and a login prompt at my hyperterminal. 3.so here, i under stood that, i have to provide some username and pwd. so i tried to simulate the server(the device) through my application and communicate with his software and find the username and pwd. but the application is unable to communicate with my simulator. any ideas on this? please excuse me members, if my post is a bit lengthy.
I was just kidding, of course. Why don't you issue the
netstat
command (from command prompt) while the device is connected with vendor software to see involved ports?If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
I was just kidding, of course. Why don't you issue the
netstat
command (from command prompt) while the device is connected with vendor software to see involved ports?If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarkewov thats wonderful. i was exactly looking for such a tool. but it gives me the results all at a time. not in real time. i mean, if i start it, and then start his application from another system, then it(netstat) should show me the commands that got transfered from one port to other. any way, i shall look into the options of it and get back to you. or if you have any idea of such an application then please forward me its url. thanks for the clue.
-
I was just kidding, of course. Why don't you issue the
netstat
command (from command prompt) while the device is connected with vendor software to see involved ports?If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
but how come did the device respond to my hyperterminal with port number 23? any idea on this? and more over, with other numbers it is not responding.
It accepts telnet connections. However maybe the vendor software uses another port to communicate. Why don't you ask the vendor?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
It accepts telnet connections. However maybe the vendor software uses another port to communicate. Why don't you ask the vendor?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
It accepts telnet connections. However maybe the vendor software uses another port to communicate. Why don't you ask the vendor?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
netstat could not give me the exact information that iam looking for. can you suggest me any other idea to achieve my goal? thank you.
Nope. Try the
Hardware / Device Drivers
[^] forum. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Nope. Try the
Hardware / Device Drivers
[^] forum. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke