GNU C++ socket programming: how to publish

Hi I have wrote a C++ server using C++, GNU libraries. Why my server can not listen the connection from outside of my local network. I have configured my router forwarding table to allow any where connect to my ip address.
I think you're asking a question. Anyway, get a copy of WireShark and use that software to find your problem.
Kooth, thank you for the reply.

yes i am asking a question. the problem is, i made a server program in ubuntu, using c++ and GNU libraries. The server can interact with client using some specific protocols, so that I can connect to and interact with my server program using telnet.

However, the ip address i am using is just localhost. I want my server live in the internet, so I tried to changed the ip address of my server to my computer's real ip address, and connect to my server from another computer using telnet, but failed. It seems that something is blocking the connection from outside of my local wireless network to my computer.

There was a time when I deployed my asp.net app, the same thing happened. what I did was just change the setting of my router's forwarding table, to allow any connection from internet to my computer, and it worked. but this time, for my ubuntu server program, I did the same thing but the problem still here, I just cant connect to my server program without using the client from the same local network.

You mentioned wireshark. What I know is wireshark is used to analysis, but will it help my problem?


many thanks!

Wireshark will help you analyze your problem; however, if you can't hit your computer from the outside, then either your ISP or your fire wall might be blocking it. Wireshark might show this -- if you don't see the traffic coming into your box, then you'll have to look elsewhere.
I think the problem is somewhere in your server you made. Please show some of your code and exactly at the point where you creating a socket and after binding this socket with the IP address of your PC as you said.
Topic archived. No new replies allowed.