Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4617578
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:08:38+00:00 2026-05-22T02:08:38+00:00

I have two computers, both are connected to the internet. I’d like transfer some

  • 0

I have two computers, both are connected to the internet. I’d like transfer some basic data between them (strings, ints, floats). I’m new to networking so I’m looking for the most simple way to do this. What modules would I be looking at to do this?

Both systems would be running Windows 7.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:08:38+00:00Added an answer on May 22, 2026 at 2:08 am

    As long as its not asynchronous (doing sending and receiving at once), you can use the socket interface.

    If you like abstractions (or need asynchronous support), there is always Twisted.

    Here is an example with the socket interface (which will become harder to use as your program grows larger, so, I would suggest either Twisted or asyncore)

    import socket
    
    def mysend(sock, msg):
        totalsent = 0
        while totalsent < MSGLEN:
            sent = sock.send(msg[totalsent:])
            if sent == 0:
                raise RuntimeError("socket connection broken")
            totalsent = totalsent + sent
    
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    
    s.connect(("where ever you have your other computer", "port number"))
    
    i = 2
    mysend(s, str(i))
    

    The python documentation is excellent, I picked up the mysend() function from there.

    If you are doing computation related work, check out XML-RPC, which python has all nicely packaged up for you.

    Remember, sockets are just like files, so they’re not really much different to write code for, so, as long as you can do basic file io, and understand events, socket programming isn’t hard, at all (as long as you don’t get too complicated like multiplexing VoIP streams…)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two computers in geographically dispersed locations, both connected to the internet. On
I am sending real-time-critical data over the internet between two dedicated computers, using my
I have two computers and I want both of them to be able to
I have google chrome on two computers here. Both run XP. I get some
I have two computers. Both running WinXP SP2 (I don't really know ho similar
I have one folder synced between two computers (using one of online sync tools).
I have a Java program running on two computers that are both on the
I have two computers with IP addresses of 192.168.1.1 and 192.168.1.2 respectively. Both computers
Say, I have two computers behind firewalls, routers, etc (ie. no incoming connections). Is
I have seen new computers having two processors on same motherboard . How can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.