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. My laptop as a router/modem
Forum Update on Monday, May 27th 2025

My laptop as a router/modem

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.3k 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.
  • M Offline
    M Offline
    MohammadReza
    wrote on last edited by
    #1

    Hi friends.

    Suppose my system (192.168.1.100) is in a LAN. In the LAN there are 2 other systems (192.168.1.101 as a system & 192.168.1.1 as a modem).

    In my project, I need to route the packet between 192.168.1.101 & 192.168.1.1. Note that I can receive packets that there destinations are 192.168.1.101 or 192.168.1.1.

    How to do?
    Is there any registry value or sth like this to do?

    Thanks a lot.
    Ya Ali.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      A LAN with three devices on those addresses would typically have a network mask that permitted 192.168.1.1 and 192.168.1.101 to talk to each other directly: no routing required. Unless you have an atypical network and your system is multi-homed, i.e. multiple network interfaces on different networks, then it will not be a router.

      What exactly are you trying to do? Why does it have anything to do with Qt?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MohammadReza
        wrote on last edited by
        #3

        Hello dear ChrisW67.
        Thanks for your response.

        I have a project. In this project, I must be a Man In The Middle!
        I can receive the packet that destined to 192.168.1.1 or 192.168.1.101.

        In other words, I want to create an application like as cain & abel using Qt.

        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #4

          Hi, you use the same technique that Cain and Abel does on your LAN (or viruses for Xbox or PC do) it's called "ARP Spoofing":http://en.wikipedia.org/wiki/ARP_spoofing

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MohammadReza
            wrote on last edited by
            #5

            Hi dear hskoglund.
            Yes. I can receive packets from 192.168.1.1 that is destined to 192.168.1.101 & vice versa. But I dont know how to roue this packets that everything appears normal for 2 victim systems.
            (Excuse my English writing is not good)

            1 Reply Last reply
            0

            • Login

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