Recent

Author Topic: can i make server?  (Read 68498 times)

shs

  • Sr. Member
  • ****
  • Posts: 310
Re: can i make server?
« Reply #135 on: October 23, 2017, 02:46:08 pm »
version 1607 (OS Build 14393.1770)
and no no firewall

can you give me your server and client projects? i just want to see if mine's bit different to yours

rvk

  • Hero Member
  • *****
  • Posts: 6163
Re: can i make server?
« Reply #136 on: October 23, 2017, 02:49:05 pm »
They shouldn't be much different because I took your source.
But since you didn't include the form itself I did need to comment out timer2 which we didn't discuss at all so I'm not sure why you have it in your source.

See attached.

shs

  • Sr. Member
  • ****
  • Posts: 310
Re: can i make server?
« Reply #137 on: October 23, 2017, 03:01:57 pm »
wow it works i don't know why it didn't work on mine
i just checked my code with yours and it's exactly same

btw i created timer 2 before because i thought it would be better to do timer than doing repeat loop in the button click but i forgot to ask you about this because i did this while you were sleeping.
is it better to use timer or is it okay with the repeat loop

also is it possible for you to connect my server right now?

rvk

  • Hero Member
  • *****
  • Posts: 6163
Re: can i make server?
« Reply #138 on: October 23, 2017, 03:07:59 pm »
btw i created timer 2 before because i thought it would be better to do timer than doing repeat loop in the button click but i forgot to ask you about this because i did this while you were sleeping. is it better to use timer or is it okay with the repeat loop
Yes, you could use timer2 to check for incoming connections.
I think (hope) the delay the timer has, is short enough for the server to respond to the incoming connection.

Quote
also is it possible for you to connect my server right now?
That's only possible if you forwarded the used port on your router and you supply your external IP adres.
And in that case you shouldn't bind to 127.0.0.1 on the server but to 0.0.0.0 (which is all network interfaces automatically, local computer 127.0.0.1 and any internal IP).

shs

  • Sr. Member
  • ****
  • Posts: 310
Re: can i make server?
« Reply #139 on: October 23, 2017, 03:13:32 pm »
is it hard to forward the port?

rvk

  • Hero Member
  • *****
  • Posts: 6163
Re: can i make server?
« Reply #140 on: October 23, 2017, 03:14:54 pm »
is it hard to forward the port?
Depends on your router. But you need to do it manually.
And you need to know your internal IP and what port you want to forward.
https://portforward.com

shs

  • Sr. Member
  • ****
  • Posts: 310
Re: can i make server?
« Reply #141 on: October 23, 2017, 03:17:07 pm »
so when i connect the server i just put 0.0.0.0 for ip and nothing for port?

rvk

  • Hero Member
  • *****
  • Posts: 6163
Re: can i make server?
« Reply #142 on: October 23, 2017, 03:20:41 pm »
so when i connect the server i just put 0.0.0.0 for ip and nothing for port?
No, you also need to specify a port.

Here is a list often used by other programs:
https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
For example port 80 is usually used for web HTTP
443 is for HTTPS
You could pick any port above 1024.
For instance 44444. Or any other port.
But you and all your clients need to use that port from then on.

shs

  • Sr. Member
  • ****
  • Posts: 310
Re: can i make server?
« Reply #143 on: October 23, 2017, 11:26:47 pm »
i don't why but it's not working?

rvk

  • Hero Member
  • *****
  • Posts: 6163
Re: can i make server?
« Reply #144 on: October 24, 2017, 11:35:54 am »
i don't why but it's not working?
Probably because you didn't forward port 1500 in your router to your internal IP address.

Or are you sure you did that correctly?

shs

  • Sr. Member
  • ****
  • Posts: 310
Re: can i make server?
« Reply #145 on: October 24, 2017, 12:06:43 pm »
i put 1500 for the port in the server program so doesn't that mean forward port 1500 in your router to your internal IP address?

rvk

  • Hero Member
  • *****
  • Posts: 6163
Re: can i make server?
« Reply #146 on: October 24, 2017, 12:07:27 pm »
i put 1500 for the port in the server program so doesn't that mean forward port 1500 in your router to your internal IP address?
Yes.

shs

  • Sr. Member
  • ****
  • Posts: 310
Re: can i make server?
« Reply #147 on: October 24, 2017, 12:15:15 pm »
if you have time now can you please connect the port 1500 and check if it is open on canyouseeorg?

rvk

  • Hero Member
  • *****
  • Posts: 6163
Re: can i make server?
« Reply #148 on: October 24, 2017, 12:18:20 pm »
if you have time now can you please connect the port 1500 and check if it is open on canyouseeorg?
It's still blocked.

Do you have multiple routers?
This should be done in the main router (which you got from your Internet provider, assuming that's a router and not just a modem).
You computer should be connected to that router.
If you have multiple routers you would need to do that on all routers.

shs

  • Sr. Member
  • ****
  • Posts: 310
Re: can i make server?
« Reply #149 on: October 24, 2017, 12:20:57 pm »
wait so it doesn't work with you ip? doesn't that mean there's something wrong with my server program?

 

TinyPortal © 2005-2018