How do I connect to my server

Hi!

This is more of an internet-protocol question rather than a C++ one, but I will try it anyway.

I have built a winsock server on my local computer. So let say I run this server. I can connect to it fine through computers inside my local network using a winsock client to complement the server. The problem is when I try to connect to it through google chrome on my public ip address. Then, it does not direct to my server, but to my router home page. How would I solve this? If I have to create my own router, then could I do that with the hardware I have already on my computer?

Thanks for the help.
You need to create a port forward on your router.

Lets say your winsock server is listening on port 4000 (just an example).
You need to tell your router to forward any incoming WAN packets on port 4000 to port 4000 on the IP address of your local computer.

If you need help setting up a port forward, try:
http://www.portforward.com
to find instructions for your specific router.
Thank you AbstractionAnon.
Topic archived. No new replies allowed.