Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 how to get your own ip using python (NO SOCKET:) )
#1
Hi,
I would like to create a code wich symply prints out the IP of the user running the code. I can't use socket cause socket creates an error when turning my program into an .exe. Does someone know a other way to get the IP?

thanks in advance!
Quote
#2
it would be better to tell how you try to convert your program to exe and what error you get
and of course show your code in python tags.
Probably the problem with the created exe is not the socket module
Quote
#3
Well it is:(. It keeps on giving the error:
import socks
ModuleNotFoundError: 'No module named 'socks'

In my script I've clearly written Import socket, not import socks.
Quote
#4
well, if it says socks that is how it is written in the code you run :-) it's not something the interpreter will lie about... :-)

show your code is python tags, the full traceback - in error tags
if you did correct the code - make sure you save after changes, make sure you run the code you *think* running

and how this is related with the exe? this error will come even hen you run the script as py file
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  For Xilinx EthernetLite LWIP:Need help in Python SOCKET Coding Saras 1 1,029 Oct-01-2018, 05:16 AM
Last Post: Saras
  Python Socket programming with packets sourabhjaiswal92 1 1,907 Sep-18-2018, 06:24 AM
Last Post: martingever
  Python socket : Error receive data quanglnh1993 1 5,916 Mar-14-2018, 11:59 AM
Last Post: avorane
  Python // C # - SOCKET connection is constantly interrupted raspberryPiBRA 0 1,078 Feb-01-2018, 09:53 AM
Last Post: raspberryPiBRA

Forum Jump:


Users browsing this thread: 1 Guest(s)