Jump to content

Netcat problem!!!


n3w_g3n3rat10n

Recommended Posts

Hi,

I am using netcat and have 2 computers (XP).

On computer A I say netcat to listen on 1235 and execute cmd

(nc -v -L -p 1235 -e cmd.exe)

On computer B I try to connect to computer A with the command

(nc 192.168.1.2 1235) and it connects just fine. BUT if I put instead of 192.168.1.2 the external ip of computer A, it does not work (nc 94.67.xx.xx 1235)

Does someone know why??

Link to comment
Share on other sites

Hi,

I am using netcat and have 2 computers (XP).

On computer A I say netcat to listen on 1235 and execute cmd

(nc -v -L -p 1235 -e cmd.exe)

On computer B I try to connect to computer A with the command

(nc 192.168.1.2 1235) and it connects just fine. BUT if I put instead of 192.168.1.2 the external ip of computer A, it does not work (nc 94.67.xx.xx 1235)

Does someone know why??

if they are behind a router you would need to forward the port on the router to the correct internal address. But you really don't want to do that as any one would be able to connect to the listening port. It would be telnet but without the plain text authentication! You should use FreeSSHd instead.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...