how to communicate between machines using public ip
-
Hi All,
I would like to get an idea about developing application between 2 machines using their public IP addresses. Is it possible to use Qt network module for the application.I already developed an application to communicate between two machines with their local ip address where both come in the same local network.
If we can able to use the Qt network module, how about the port number that can be used?
thanks in advance -
Hi,
What issue do you have with that ?
How do you configure your applications to know about one another ? -
Hi,
thanks for your help.I have created an application based on client/server using QTcpserver and client using QTcpsocket. It is able to send data between when being operated in same network. But when I used the Ip that I got through "what is my ip", it is not connecting?I am new to this networking area.Sorry if I missed any knowledge.
Is there any settings to be done to communicate through the unique ip of the machine.thank you..
-
when you mention private and public IP numbers that tells me the machines are NAT addressed behind firewalls. You can't reach them over the public internet unless you punch port-forwarding holes in the firewalls, or unless you are an eLite HaCkEr., which I doubt, given the nature of the question.
-
Hi
In a network, there is a router with a firewall in front and it blocks
incoming connections. So when your app tried to talk to another app over internet
it wont be allowed in.
One can tell the firewall that its ok for a given port and if traffic comes, then tell it where
to send the traffic (the ip of the pc running the app)
This is called port forwarding.However, if your app is to be used by other people this is really not an option to ask them to open ports.
Can you tell us what the app does and what you wish to do ?