Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Testing network programming codes

Testing network programming codes

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hpng
    wrote on 23 Jun 2011, 19:01 last edited by
    #1

    How do one go about testing network programming codes when
    there is no external IP address access at this stage?

    I am aware of using loopback locahost IP address of 127.0.0.1.
    Say I have code to communicate with two external hosts at IpHostAddr1 = aaa.bbb.ccc.dd1
    and at IpHostAddr1 = aaa.bbb.ccc.dd2, but I like to test the codes out.
    If I have multiple localhost loop back address, then I would temporary reassign IpHostAddr1
    IpHostAddr2 with corresponding localhost addresses.

    I am not aware of multiple loopback addresses, if there are more than one.
    What do i do?

    Is there a simple example to show testing of code for communication / connection between my code and to two external IP addresses, and mapping the external IP address to localhost loopback?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on 23 Jun 2011, 19:09 last edited by
      #2

      The best one is to use external server (for example some cheap vds) for network testing. It will show real problems when loopbacking will mask some problems caused by network delays

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on 23 Jun 2011, 19:11 last edited by
        #3

        You can always set up a couple of virtual machines for testing.

        1 Reply Last reply
        0

        1/3

        23 Jun 2011, 19:01

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved