#๐Ÿ”’ Socket client address is different to the server

7 messages ยท Page 1 of 1 (latest)

bronze oak
#

When I connect to the server i have made, the server gets the ip ('147.235.221.91', 3151) but when i run socket.getsockname() from the client i get ('10.0.0.11', 64335) is there a simple way of getting the address the server has, or do i need ot send it back to the client?

bitter walrusBOT
#

@bronze oak

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

visual anvil
#

You need to send it back to the client

#

The standard protocol for this is STUN/TURN

bronze oak
#

ty!

bitter walrusBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.