Click here to Skip to main content
15,867,834 members
Please Sign up or sign in to vote.
1.00/5 (1 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

1 solution

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).
 
Share this answer
 
v3
Comments
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..
Nish Nishant 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..
Nish Nishant 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.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900