Click here to Skip to main content
13,048,011 members (72,322 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 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 24-Jan-11 9:48am
Ok, that's not possible. Without a process running a listening server, you cannot connect to a port.
Gokulnath007 24-Jan-11 9:49am
ok, with the IP address??
Gokulnath007 24-Jan-11 9:50am
If the remote system is switched on.. is it possible to take that as the port..
Nishant Sivakumar 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 24-Jan-11 10:03am
Then, how Trojan works??
Nishant Sivakumar 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 24 Jan 2011
Copyright © CodeProject, 1999-2017
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