Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was playing around with netcat on my lan , had PC1 configured as a netcat client and PC2 configured as a netcat server into a reverse netcat TCP connection.This whole reverse TCP connection works just perfect so i was wondering .. is it possible to connect 2 different PCs(each one belongs on its own network) with netcat if both networks use dynamic IPs and not static ones?

share|improve this question
add comment

1 Answer

Of course it is, as long as:

  • no firewalls are interfering in the path between PC1 and PC2.
  • you know the dynamic IPs in question.
  • if you want to reach hosts behind a NAT router, port forwards are set up correctly.

If the ISP on either end pulls the lease on the dynamic IPs during your connection, it's likely your connection will break at that time.

share|improve this answer
    
and taking into account the wider context of the question, ensure that the IP addresses are not in the private ranges. –  Journeyman Geek Jun 24 '13 at 1:37
    
Thank you both for your fast reply! Now lets say we dont have any physical access on client PC that connects to our server.When servers IP expires , is there any possible way to inform client that IP changed to a new one?Could we add a webserver in the middle of that connection and do the job? –  user226438 Jun 24 '13 at 1:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.