Jump to content
YOUR-AD-HERE
HOSTING
TOOLS
992Proxy
  • 0

Locked Ayuda en Sockets C++


Rellup

Question

Buenos días lectores,

 

Quisiera que me ayuden a convertir estos códigos de sockets en c++ para crear un servidor de acuerdo a "no-ip". O bien, volver mi pc un servidor.

 

Mi código funciona con "127.0.0.1", pero como hago para volverlo una botnet o algo parecido ?

 

Tengo entendido que puedo poner en el cliente mi ip pública, pero no funciona... alguien con más experiencia me podría decir ?

 

Tengo entendido que tengo que abrir puertos... ¿qué puertos debo utilizar?¿Abro en router y/o firewall?

 

Sin incomodar al lector, si tienen un código 100% funcional con "no-ip" me interesa estudiarlo.

 

Muchas Gracias,

 

Servidor:

This is the hidden content, please

 

Cliente:

 

This is the hidden content, please

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Re: Ayuda en Sockets C++

 

Thanks for answer.

 

I tried this:

 

Server:

 

This is the hidden content, please

 

Cliente:

 

This is the hidden content, please

 

Netstat -A

 

This is the hidden content, please

 

Is the same....

 

Another idea ?

 

I use WIFI to connect to my router.

 

I desactived my Firewall.

 

I give my program with "blablabla.ddns.net" to my friend. He doesn't connect to me.

 

Opinion: I think the problem is on my computer. Connection to my router.

Edited by Bluffin
Link to comment
Share on other sites

  • 0

Re: Ayuda en Sockets C++

 

It seems that the server is listening on port 0.0.0.0:2002, so your likely right about the router. On your router, you will need to forward port 2002 to the ip address of your computer. After that, it should be working.

 

You can test it from the outside with

This is the hidden content, please

Link to comment
Share on other sites

  • 0

Re: Ayuda en Sockets C++

 

Thanks.

 

The error is on my port.

 

Check that:

 

 

Router: 192.168.1.1

 

This is the hidden content, please

 

Scanning..

 

Port 2002 is closed on xxx.xx.xx.xxx.

 

This is the hidden content, please

 

I don't understand what happend.

 

I desactived my firewal..

I "open" the port 2002 in my router.

 

I think the problem is because I connect to my router for Wireless

 

All is ok.

 

You know how to fix this ?...

Edited by Bluffin
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.