Results 1 to 3 of 3

Thread: Direct UDP Connection

  1. #1
    Join Date
    Feb 2013
    Beans
    2

    Direct UDP Connection

    Hi all!

    I want to establish a direct connection between two PC through UDP protocol. The UDP will be implemented using simple client-server method in Python script via terminal. To send a message, the receiver IP address and port is required. As far as i know, IP address is assigned via DHCP or manually. To this time, i tested the program using loopback address (127.0.01 or my IP).

    How can i determine the IP address and/or port (UDP, specifically) of the other PC in direct ethernet connection? Is it automatically assigned when i connect the two PC (like local 192.168.0.x or so)?

    Many Thanks!

  2. #2
    Join Date
    Nov 2008
    Location
    Sheffield, UK
    Beans
    1,517
    Distro
    Ubuntu

    Re: Direct UDP Connection

    It wont be automatically assigned unless it's connected to a DHCP server. You would need to manually assign it an IP

  3. #3
    Join Date
    Feb 2013
    Beans
    2

    Re: Direct UDP Connection

    So i need a routing device to do a direct UDP connection? Is it possible to "preconfigure" the IP address?

    Many thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •