Since you are behind a router , ipconfig will only show the address of your
machine which has been given by the router. Ipconfig cannot see beyond the
router.
If you work within your own LAN , the IP address of your machine is
sufficient for the socket.
If you want to access from outside ,
Dear All
I have designed a small program to control an arduino through python socket
server. The front end is the Javaquery. My HTML code is given below
$(function() {
$( #slider ).slider({
min: 0,
max: 180,
step: 10,
slide: function( event, ui ) {
I have written the following code in Python for my Arduino
#!c:\Python27\Python.exe
import cgi, cgitb;
import sys, serial
cgitb.enable()
ser = serial.Serial('COM27', 9600)
myvar = ser.readline()
print Content-type:text/html\n\n
print
html
head
title
Real Time Temperature
/title
Dear All
After a lot of struggling for weeks , I can read the serial port readings in
my web page. Below is the code
#!c:\Python27\Python.exe
import cgi, cgitb;
import sys, serial ,time
cgitb.enable()
ser = serial.Serial('COM27', 9600)
numOfLines = 0
print Content-type:text/html\n\n