Click here to Skip to main content
15,790,267 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to run my Python code by pointing to a specific Ip address in Windows hosts file. can you please help me how to do it ?

What I have tried:

not sure how to do it.. was searching Nameservice equivalent in Python Same as in Java but couldn't get it.
Afzaal Ahmad Zeeshan 18-Jan-23 12:39pm    
Your question is unclear, can you explain what exactly do you want to do?
Dave Kreskowiak 18-Jan-23 13:24pm    
No idea what that means. You cannot run code just by specifying an IP address in something.

You're going to have to explain what you mean by "pointing to a specific IP address." Point WHAT?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900