How to get localhost address of vpython

19 views
Skip to first unread message

Pat Facunla

unread,
Sep 6, 2022, 1:07:04 PM9/6/22
to Glowscript Users
Hello I am new to vpython and I am wondering how can I know where is the next address location of the localhost because everytime I run vpython the localhost port is random.


Pat

Pat Facunla

unread,
Sep 6, 2022, 1:53:24 PM9/6/22
to Glowscript Users
It's so hard to me to state my problem because I am using Arduino to get my data. Then I read that data coming from the Arduino and plot it to Vpython. 
Now I would want to put that live data on a website.

(Arduino is a hardware  that is getting data through sensors in real life) 
So when the sensors detect changes, Vpython also changes. It's so hard for me to get data about vpython. I am really a beginner and I feel helpless.

Harlan Gilbert

unread,
Sep 6, 2022, 2:27:33 PM9/6/22
to glowscri...@googlegroups.com
Not an expert, and not sure what the problem is, but see if this helps:

1) To reference the localhost IP address from the same computer, you can always use 127.0.0.1   This is a special IP address only valid as a self-reference, however; not if you want to access your computer from another computer.
2) The external localhost IP address would be assigned by your local network.  It sounds as if this is being dynamically assigned, which means that everytime you login it is different.  VPython and Glowscript cannot control this behavior, but it is possible to configure the router to assign your computer a static (fixed) IP address, so that it will always be the same.

Good luck,
Harlan

--

---
You received this message because you are subscribed to the Google Groups "Glowscript Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glowscript-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/glowscript-users/b1c710d1-ccb3-44b5-893f-8fbeaccdcb08n%40googlegroups.com.


--
Harlan Gilbert, Ph.D.
High School Chair and Math, Physics, Computer Science, and Philosophy Teacher
Green Meadow Waldorf High School
Chestnut Ridge, NY 10977
Reply all
Reply to author
Forward
0 new messages