Jump to content

tcp ip over internet


Recommended Posts

The client server model using tcp ip is working fine in local network. Need help to transfer data over internet.

 

Server address:

    Local $sIPAddress = "116.202.126.252"
    Local $iPort = 65432
 
    Local $m = MyTCP_Server($sIPAddress, $iPort)

 

Client address:

    Local $sIPAddress = "116.202.126.252" ; 
    Local $iPort = 65432 ; 
 
    MyTCP_Client($sIPAddress, $iPort)
 

 

How can I configure ?

Thanks

Ramesh G

Link to comment
Share on other sites

Agreed, your WAN facing router will need to be configured to do port forwarding. That will allow an external address/port to properly connect to the NAT'd device on your internal network.  You can even declare that particular ports forward to alternative ports on the internal LAN.  For example, a port forward can be setup to allow an incoming connection on external_ip:2424 to redirect to internal_ip:65432

Edited by spudw2k
Link to comment
Share on other sites

  • 9 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...