Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC8.0
I want to connect to the remote system provided only the IP address and port number.. But the remote system does not know about this.. I mean the process should be hidden to the remote system...
Posted 24-Jan-11 4:25am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You cannot connect to an IP/Port unless there is a listening TCP server (listening on that port).
 
If you are wondering how trojans/worms do this, they usually use buffer overflow exploits or DDOS scripts on open ports (open as in a service is running/listening on that port).
  Permalink  
v3
Comments
Gokulnath007 at 24-Jan-11 9:41am
   
Not like the server client application.. Just to connect to the remote system using its IP and port.. no supporting process should run in the remote system.. only the client system needs to get connected with the remote system if the remote system is switched on..
Nishant Sivakumar at 24-Jan-11 9:48am
   
Ok, that's not possible. Without a process running a listening server, you cannot connect to a port.
Gokulnath007 at 24-Jan-11 9:49am
   
ok, with the IP address??
Gokulnath007 at 24-Jan-11 9:50am
   
If the remote system is switched on.. is it possible to take that as the port..
Nishant Sivakumar at 24-Jan-11 9:52am
   
No, think of a port like an electric plug socket. There is power only if the plug socket internally connects to an electric line. You cannot connect your phone charger to an unconnected plug socket and expect it to get charged, can you? It's the same thing here.
Gokulnath007 at 24-Jan-11 10:03am
   
Then, how Trojan works??
Nishant Sivakumar at 24-Jan-11 10:07am
   
Trojans by definition usually mean some kind of backdoor (which is usually but not always a TCP server of sorts that allows external connections).
Gokulnath007 at 24-Jan-11 10:11am
   
oh. ok ok.. Thank You

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 5,130
1 DamithSL 4,237
2 Maciej Los 3,700
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,846


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 24 Jan 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100