Click here to Skip to main content
11,795,848 members (77,277 online)
Rate this: bad
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 3:25am

1 solution

Rate this: bad
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).
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 Maciej Los 350
1 Sergey Alexandrovich Kryukov 326
2 KrunalRohit 239
3 Andy Lanng 236
4 OriginalGriff 230
0 OriginalGriff 1,852
1 Maciej Los 1,465
2 KrunalRohit 1,300
3 CPallini 840
4 Richard MacCutchan 828

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 24 Jan 2011
Copyright © CodeProject, 1999-2015
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