Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Networking Help
#1
Hello everyone, i hope everyone is fine. This is not specifically a Python issue per se, however, I'm lacking a bit of networking understanding and am stuck with my Python project. The problem is as under.

I am trying to communicate between two machines using sockets over the internet(WAN).
I have enable port forwarding using UPNP and set the relevant forwarding e.g. 27.255.xx.xx --> 192.168.0.5 on port 7777 .
When i run one instance of my script which binds on 192.168.0.5 on port 7777 everything runs fine and i can connect from the second PC over WAN to the instance running on my machine .
I am confused of what will happen when the same script is run on another machine on my local network. I don't have another machine available with me at my home or i would've done some testing.
How will the computer sending the data on the other end differentiate between the two instances as the computer on the other end just connects on 27.255.xx.xx, 7777

Any help will be highly appreciated on explaining how the above will work. Any tutorials will also be appreciated dealing with the above situation. I have searched a bit online but can't find a reasonable explanation on how the above is supposed to work i.e. how to run two instances of the application bound to the same port on two local machines.

Kind Regards
iMu
Reply
#2
Python.org (authors of python) ahve a good tutorial here
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I begin learning networking? rohit19 5 3,879 Feb-10-2021, 09:56 AM
Last Post: Naheed
  Networking archer491 0 1,984 Dec-11-2019, 10:17 AM
Last Post: archer491
  Need some help with networking problems... GottaAimHigherPal 6 3,609 Oct-18-2018, 07:41 AM
Last Post: JunaithPetersen
  COMPLETE BEGINNER TO NETWORKING. HELP? ShadowWarrior17 11 7,520 Jan-06-2018, 02:05 PM
Last Post: sparkz_alot
  Python 2 http networking problems, if any Aeneas 1 3,083 Sep-06-2017, 07:24 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020