Thread: Listen to outbound IPs

  1. #1
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853

    Listen to outbound IPs

    My setup is as following (windows XP). I have an emulator that tries to connect to a specific IP of a DNS server. It basically starts and sends a UDP packet on port 53 on the specified IP (cannot change).
    I have then another fake DNS server that listens to a configurable IP and resolves the DNS query. My issue is that practically the only way for it to work is if the emulator tries to connect to the localhost. What I would like is somehow the default gateway to return back to the localhost. Or just route back a specific IP to the localhost.
    I tried first "route" command but it cannot route to the localhost. Using virtualbox would theoretically work but it is to heavy just to do what I want.

    Any ideas? Purpose is to test without needed another machine.

  2. #2
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    It depends on the facilities of your router and "OS", but you may be able to ask your router to do this for you.

    Using a router would be the preferred approach.

    That said, this is possible within almost every "OS" including "Windows XP".

    Soma

    How to add Multiple IP Address in Windows 2000,XP,2003 | ItsyourIP.com

  3. #3
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Thanks, that worked great! Not the smoothest solution as you I cannot actually keep a static IP (IT guys will hate me) but I can switch back and forward and do my testing just fine

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. IE8 outbound connections
    By VirtualAce in forum General Discussions
    Replies: 11
    Last Post: 09-28-2010, 11:13 PM
  2. help with listen and sockets.
    By Ironic in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-05-2009, 02:41 AM
  3. What exactly does listen() do from winsock 1.1
    By *DEAD* in forum Networking/Device Communication
    Replies: 6
    Last Post: 12-14-2007, 06:48 PM
  4. the listen() function
    By Da-Nuka in forum Networking/Device Communication
    Replies: 9
    Last Post: 03-07-2005, 02:44 PM
  5. What do you listen to?
    By FloatingPoint in forum A Brief History of Cprogramming.com
    Replies: 35
    Last Post: 06-24-2003, 09:41 PM