NAT -LAST Question
Dear All,
i have the following question regarding the NAT Configuration.
as Every One Knows we have in NAT Terminology the following Terms :-
1- Inside Local Address, which is Private Network or which is MY LAN IP Address .
2- Inside Global Address, which is the legitimate IP Address assigned by the NIC Or the ISP Provider, which is the Real IP Address.
now, the 2 terms which i mention is used only in STATIC ,Dynamic , Overloading NAT.
Now, My question is :-
1- if i have this real IP Address assigned by my ISP, 64.202.88.20 , and i have an Internal WEB SERVER inside My Company and the WEB SITE is on it.
i want to make NAT to let all the People from out side access this Server through NAT it self by http. how can i wrote the IP NAT COMMAND ?
which one is the OUTSIDE LOCAL ADDRESS & which one is the OUTSIDE GLOBAL ADDRESS ?
Please Reply .
Thanks For your reply.
i have only 2 question here.
1- this will allow any one from OUTSIDE like internet, when he type in the Browser :-
( this IP is assign for example to this Domain www.FAS200.COM ).
http://www.fas200.com ,
the Request will come to this Router and there will be a translation from this Real IP address to this Internal IP Address, and the User will Not never know that there was a internal IP. is that correct ?
2- if i have my Exchange server, and i did the MX record to map to this IP, how the command is ?
3- what is the meaning of OUTSIDE LOCAL ADDRESS & OUTSIDE GLOBAL ADDRESS ?
please update me .
Similar Messages
-
Details for last question I post
the original code for last question I post(about the DataInputStream& EOFException) is here, thanks if anyone will bother to read it
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.* ;
public class MasterMindServer
public MasterMindServer()
try{
ServerSocket serverSocket=new ServerSocket(8000);
Socket socket=serverSocket.accept();
HandleAClient thread=new HandleAClient(socket);
thread.start();
}catch(IOException e){System.out.println("Error:"+e.toString());}
public static void main(String args[])
new MasterMindServer();
//inner class
class HandleAClient extends Thread
DataOutputStream out;
DataInputStream in;
BufferedReader fromFile;
private Socket socket;
String line;
public HandleAClient(Socket socket)
this.socket=socket;
public void run()
int x,o;
try{
out=new DataOutputStream(socket.getOutputStream());
in=new DataInputStream(socket.getInputStream());
fromFile=new BufferedReader(new FileReader("colorcode.txt"));
while((line=fromFile.readLine())!=null)
for(int i=0;i<10;i++)
String t=in.readUTF();
x=check_column(t);
System.out.println(x);
o=check_color(t);
System.out.println(o);
out.writeInt(x);
out.writeInt(o);
if(x==6) break;
out.writeUTF(line);
socket.close();
System.out.println("close");
}catch(IOException e){
System.out.println("Error:"+e.toString());}
public int check_column(String s)
String str;
str=s;
int count=0;
for(int i=0;i<6;i++)
if(s.charAt(i)==line.charAt(i))
count++;
return count;
public int check_color(String s)
String str;
str=s;
int count=0;
for(int i=0;i<6;i++)
if((line.indexOf(s.charAt(i))!=-1)&&(line.charAt(i)!=s.charAt(i)))
count++;
return count;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.* ;
public class MasterMindClient extends JFrame implements MouseListener,ActionListener
/** Default constructor */
//keep track of the row (or trial) and column number
int trial_num, col_now ;
Socket socket;
int count[]={5,5,5,5,5,5};
JPanel A[] = new JPanel[10];
JPanel B1[] = new JPanel[10];
JPanel B2[] = new JPanel[10] ;
JPanel notice = new JPanel() ;
JPanel sub_notice = new JPanel();
JPanel D1, D2 ;
static JTextField [][]color = new JTextField[10][6] ;
static JTextField [][]Output = new JTextField[10][2];
static JTextField [][]Answer = new JTextField[1][6] ;
static JButton []ok = new JButton[10];
JLabel L1 = new JLabel("Click the textfield to change color");
JLabel L2 , L3, L4 ;
String colorRange="BCGRYW";
Color colorName[]={Color.black,Color.cyan,Color.green,Color.red,Color.yellow,Color.white};
String temp ;
public MasterMindClient() {
// initialize
trial_num = 0;
col_now = 0;
//sub_notice is Panel where the heading labels are placed
sub_notice.setLayout(new GridLayout(1,3)) ;
L2 = new JLabel(" ") ;
L3 = new JLabel("X");
L3.setHorizontalAlignment(JTextField.CENTER);
L4 = new JLabel("O");
L4.setHorizontalAlignment(JTextField.CENTER);
L3.setToolTipText("matching color and column");
L4.setToolTipText("matching color but not matching column" );
sub_notice.add(L2);
sub_notice.add(L3);
sub_notice.add(L4);
notice.setLayout(new GridLayout(1,2)) ;
notice.add(L1) ;
notice.add(sub_notice) ;
// Get the content pane of the frame
Container c = getContentPane();
// Set GridLayout, 4 rows, 3 columns, and gaps 5 between
// components horizontally and vertically
c.setLayout(new GridLayout(12, 1, 5, 5));
c.add(notice);
JPanel Display = new JPanel() ;
Display.setLayout(new GridLayout(1,2,5,5)) ;
//create a Panel for each row to accept use input
// color[][] textfield is where the user input
// Output[][] is where to display the number of X and O
for (int i = 0; i <= A.length-1 ; i++)
A[i] = new JPanel() ;
A.setLayout(new GridLayout(1, 2,10,10));
B1[i] = new JPanel();
B1[i].setLayout(new GridLayout(1,6,5,5)) ;
B2[i] = new JPanel();
B2[i].setLayout(new GridLayout(1,3,5,5)) ;
for (int j = 0; j <= color[i].length-1 ; j++)
color[i][j] = new JTextField() ;
color[i][j].setHorizontalAlignment(JTextField.CENTER);
if (i == 0)
{color[i][j].setEditable(true) ;
else
{color[i][j].setEditable(false);
color[i][j].addMouseListener(this);
B1[i].add(color[i][j]) ;
} // j loop
ok[i] = new JButton("SEND");
if(i==0)
ok[i].setEnabled(true);
else
ok[i].setEnabled(false);
ok[i].addActionListener(this);
B2[i].add(ok[i]) ;
Output[i][0] = new JTextField();
Output[i][1] = new JTextField();
Output[i][0].setEditable(false);
Output[i][1].setEditable(false);
Output[i][0].setHorizontalAlignment(JTextField.CENTER);
Output[i][1].setHorizontalAlignment(JTextField.CENTER);
B2[i].add(Output[i][0]);
B2[i].add(Output[i][1]);
A[i].add(B1[i]);
A[i].add(B2[i]) ;
c.add(A[i]) ;
} //for i loop
//D panel is where we store the answer[][]
D1 = new JPanel();
D1.setLayout(new GridLayout(1,6)) ;
D2 = new JPanel();
D2.setLayout(new GridLayout(1,2)) ;
for (int j = 0; j <= Answer[0].length-1 ; j++)
Answer[0][j] = new JTextField(0) ;
Answer[0][j].setHorizontalAlignment(JTextField.CENTER);
Answer[0][j].setEditable(false) ;
D1.add(Answer[0][j]) ;
Display.add(D1) ;
Display.add(D2) ;
c.add(Display) ;
public void runClient()
try
{ socket=new Socket("localhost",8000);
DataInputStream in=new DataInputStream(socket.getInputStream());
int x=0;
int o=0;
try{
while(true)
while(trial_num<10)
x=in.readInt();
//System.out.println(x);
Output[trial_num][0].setText(String.valueOf(x));
o=in.readInt();
//System.out.println(o);
Output[trial_num][1].setText(String.valueOf(o));
for(int i=0;i<6;i++)
color[trial_num][i].setEnabled(false);
ok[trial_num].setEnabled(false);
trial_num++;
col_now=0;
if(x==6)
JOptionPane.showMessageDialog( null, "Congratulation, you've won the game !! " );
//ok[trial_num].setEnabled(false);
break;
if(trial_num<10)
{ for(int i=0;i<6;i++)
color[trial_num][i].setEditable(true);
count[i]=5;
ok[trial_num].setEnabled(true);
if(x!=6)
{ JOptionPane.showMessageDialog( null, "sorry you did not win the game");
temp=in.readUTF();
System.out.println(temp);
//temp=in.readUTF();
//System.out.println("can");
for(int i=0;i<6;i++)
System.out.println(i);
char a=temp.charAt(i);
int index=colorRange.indexOf(String.valueOf(a));
Answer[0][i].setBackground(colorName[index]);
trial_num=0;
for(int j=0;j<10;j++)
for(int k=0;k<6;k++)
color[j][k].setBackground(Color.white);
for(int j=0;j<10;j++)
for(int k=0;k<2;k++)
Output[j][k].setText(null);
for(int i=0;i<6;i++)
color[trial_num][i].setEditable(true);
count[i]=5;
ok[0].setEnabled(true);
catch(EOFException em){}
}catch(IOException ex){
System.out.println("Error:"+ex.toString());}
public void mouseClicked(MouseEvent e)
for(int i=0;i<6;i++)
if(e.getComponent()==color[trial_num][i])
{ col_now=i;
break;
count[col_now]=(count[col_now]+1)%6;
color[trial_num][col_now].setBackground(colorName[count[col_now]]);
public void mouseEntered(MouseEvent e)
public void mouseExited(MouseEvent e)
public void mouseReleased(MouseEvent e)
public void mousePressed(MouseEvent e)
public void actionPerformed(ActionEvent e)
try{
send();
}catch(IOException et){System.out.println("Error:"+et);}
public void send()throws IOException
DataOutputStream out=new DataOutputStream(socket.getOutputStream());
char cbuf[]=new char[6];
for(int i=0;i<6;i++)
cbuf[i]=colorRange.charAt(count[i]);
System.out.println(cbuf);
out.writeUTF(new String(cbuf));
/** Main method */
public static void main(String[] args) {
MasterMindClient frame = new MasterMindClient();
frame.setTitle("Master Mind");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLocation(300,300) ;
frame.setSize(450, 450);
frame.setVisible(true);
frame.runClient();
} // end of classI notice that you have several hundred lines of GUI code there. None of them have anything to do with the problem you are trying to solve. So put them all aside and write a SMALL test program that does nothing but the little loop you are having a problem with. Shouldn't be more than 20 lines of code.
-
One last question about apple tv!! viewing movies in movies folder
thanks to those who have responded to my previous questions.
thinking of buying an apple TV this weekend, but here's my last question (which I just thought of!)
i've got a collection of movies in various formats, usually .mov or .dv of home videos i've made in FCE and iMovie over the years, some of them several GB in size (oops!)
what's the best way of viewing these on the apple tv. for instance
1. does apple TV let you look into your 'movies' folder in the home folder to play any movies it finds there
2. will it play .dv or .mov files, or does it need to be a specific format
3. i've noticed an 'export to apple tv' in quicktime pro, do i need to do this for all my movies before apple tv will play them. and after i do an 'export to apple tv' where do the files need to be? imported into itunes, or just sat in my 'movies' folder?
cheers, looking forward to visiting the apple store tomorrow!1. does apple TV let you look into your 'movies' folder in the home folder to play any movies it finds there.
No, the tv uses itunes for its source of movies.
2. will it play .dv or .mov files, or does it need to be a specific format
DV, no. MOV, maybe. MOV is a container type not a compression type, if the MOV container has the correct compression formats in it then it will play. Movies for the tv need to be either mpeg4/2 or mpeg4/10 (H264/AVC)
3. i've noticed an 'export to apple tv' in quicktime pro, do i need to do this for all my movies before apple tv will play them. and after i do an 'export to apple tv' where do the files need to be? imported into itunes, or just sat in my 'movies' folder?
Yes 'export to tv' will do the job for you. You need to be aware though that DV with the wrong field dominance will cause it a problem, and some cameras do use the wrong field dominance. It won't work with muxed files (mpeg2 for example) and on SD movies it can be a little wasteful on space. I've always used mpegstreamclip to convert from DV.
Of course from now on you'll be using FCE with this in mind and exporting accordingly. -
One last question about Apple IDs
I thought id asked the lot but there is one last question. How does one delete an Apple ID?
Many thanks again
AnthonyHello Again Anthony!
"How does one delete an Apple ID?"
You can't.
After you quit using an account, it's posts, will be archived. What that means is, that if there are no additional responses in the Threads they reside in, the Topics will get continually pushed down on the Topics list. After a certain amount of time, maybe 2 to 6 months, the Threads will be locked, so no responses can be entered. But the Threads will not disappear.
Threads in heavily trafficked Forums, may be archived more rapidly than those in areas, with less activity.
The Topics that you started using the account, will show your the Alias, in the Author field of a main forum page, but eventually, readers will have to keep going to the succeeding pages to view them.
If someone were to do a Discussions Search, using these parameters:
Restrict by Category or Forum: All Categories
Restrict by Date Range: All
Restrict by Username: Your Old Alias
all of your posts, created since about 11/13/05, would be found.
ali b -
Sorry last question got knocked back my ipad and iPhone on two different levels and I am not able to play through Facebook so not able to progress or unlock next level through Apple store. Don't know how to resolve problem
Thank you again for all of your help!! I really appreciate it!
I think I am following -- I was able to upload to my iPhoto and all photos and videos are there that is a plus! I tried to create an Event in my iPhoto and put all of my photos in that event but for some reason, now my iTunes it not recognizing that Event in my iPhoto. It is not allowing me to import just that event at the moment but I may be doing something wrong. At least all of my pics and vids are in iPhoto so that is a plus and I know they are at least saved somewhere. Just for some reason, my iTunes it not locating the event that I created with only those photos.
Thank you for letting me know about my contacts! How do I know if I have the contacts app?
Also, I had no clue that my iCloud could be backed up via cellular data! However, is this a new feature with the most updated iOS?? Unforutnatly I am like 2 iOS updates behind because I don't have enough storage on my phone. I still get the notification that my phone needs to be plugged in and connected to wifi in order to back up to the cloud :-(
How can I sync using USB? Right now when i click on the info tab for my iPhone in my iTunes this is the answer that I get -- I am a little unclear as to what it means.
Sync Contacts:
Your contacts are being synced with you iPhone over the air from iCloud. Over-the-air sync settings can be changed on you iPhone
Sync Calendars:
Your calendars are being synced with you iPhone over the air from iCloud. Over-the-air sync settings can be changed on you iPhone -
RoboDemo skipping last question
Well, we still have a few RoboDemo files that we are still
updating using RoboDemo. But, the OS on my computer was upgraded to
XP and my copy of RoboDemo was removed. I have a couple of RoboDemo
5 cds (different builds) but they are all having an issue with the
questions, where it just skips the last question. The Display score
at end of movie checkbox is checked. So, for instance if I have 20
questions, after the 19th question, the question stats (# wrong, #
correct) comes up. The build that I have installed right now is
Version 5 Build 760.
I would appreciate any RoboDemo expertise out there.
Thanks.The last version of RoboDemo was/is Build #777.
The change in OS shouldn't have anything to do with it, to
the extent that WinXP is supported - though other changes made at
the same time may be impacting the installation of RoboDemo. I
doubt that is the problem, as it should either work - or not - when
started, and your installation appears to be working.
I'll bow out now, as I've already told you what the "fix" is
(assuming that the correct build is installed). I've worked with RD
from the beginning of time, so it will surprise me if someone has a
different fix, but I certainly hope you do have luck in finding
another solution ...
... best of luck. -
I have allready bought the programs, but need to reinstall AE and PP due to an error with dynamic link.
Where do i find the program install?
And tips on how to reinstall without messing things up?
last question is, does my recent files and saves work after the reinstall?
Thank youkarianne wrote:
I have allready bought the programs, but need to reinstall AE and PP due to an error with dynamic link.
Where do i find the program install?
Which versions? Which operating system?
Try Download and Installation Help -
okay, so please disregard my last question. I had the page set up in vector view. Hmmmm, ridiculous. THanks, though, if you took the time to research my idiocy, I appreciate it.
So this is not the computer that the device normally syncs with, iTunes is working exactly as designed.
-
Thanks for the idea. One last question..
Thanks for the replies, setting it to passive seemed to work
as I can now upload to my host. Just one last question, I've
searched the video knowledge base looking for a video on how to use
the 'Starter Pages' within Dreamweaver to no avail. When I try I
always get the same message: 'Dreamweaver stores templates in the
root folder of a site, but there are no sites defined. Please add a
site.' I have my site all layed out in Dreamweavers FTP, I can
upload and download with it and still Dreamweaver gives me this.
Any ideas?
Thanks once again allUsing FTP & RDS Server for your site means that you will
not be able to use
DW's Templates or Library items. It's usually a very bad
idea, to boot.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"John Waller" <[email protected]>
wrote in message
news:g1a9mi$qtn$[email protected]..
> F1 Dreamweaver Help files
>
> Working with Dreamweaver Sites > Setting up a
Dreamweaver site
>
> --
> Regards
>
> John Waller -
Before I buy my Canon HG20, I have one last question.
I have seen warnings various places on the net about having a powerful enough computer to work with the data produced by this camera.
I have an iMac 24 2.16 2GHz Intel Core 2 Duo with 2 MHz Memory, NVIDIA GeForce 7300 card, running OS X 10.5.6 with FCE 4.0.1.
Am I OK?
Thanks,
JimThat is a perfect machine for AVCHD editing. i use a puny Macbook and I have experienced no problems, everything is very fast. To work with AVCHD, you need an Intel processor and to have at least FCE4. 2GB of RAM is also a good idea to have (I assume that's what you meant you had when you said you had "2 MHz Memory"). From what you have said of your specs, I can't foresee any problems. If a Macbook can do it well, you can expect an iMac to do it amazingly.
Enjoy your new camcorder, I definitely am pleased with my HG21 (basically the same thing, just more memory and a viewfinder).
Message was edited by: skalicki` -
Forget the last Question. Figured it out.
Forget the last Question. Figured it out. Sorry!
It would be very useful to post your solution here for others who have the same problem (I've seen several threads on this subject).
Matt -
Can you please delete my last question
Can you please delete my last question re: iCal in the iCal forums? Thanks. I would like to write it more calmly. Also, please advise how I can change an alias. I do not see a place in "Edit My Settings."
If you look at the announcement at the top of this topic, you will see one referring to changing your alias.
-
WHAT HAPPENED TO MY LAST QUESTION?
LAST QUESTION WAS ABOUT AN ALERT what happened:TypeError: Components.classes['@mozilla.org/extensions/manager;1'] is undefined
HOW DO I RESOLVE?over here - https://support.mozilla.com/en-US/questions/853719?s=&as=s
-
All the sideshows are working, it's just the original stuff that's not, like the banner and the spry bar, I think it's got something to do with the main CSS file not linking to them, how do you reconnect a main CSS file once you have put the page/s one folder deeper. Please refer to my last question
Please refer to my last question
Avoid creating new discussions when this new post is a continuation of the previous discussion. Gets confusing and disjointed quickly otherwise.
Much better if you keep everything in one spot and reply to your own post with a follow up post in the same (previous) discussion until the previous discussion is answered. -
to my last question is how to put a line
between th esidebar and the main containt It is not to make a border on the side
bar. It is to place a line between the sidebar container and the content container. I do not wish
to make a border arround the sidebar neither arround the main content. My purpose is just
to put a vertical line from the header container to the footer container between the sidebar and the maincontent divs!
See the file below with the blue line separating the sidebar and the content container. that is the line that i want to make.
thanks. !Merry Christmas!As noted this is an Acrobat product forum. Are you using an Adobe web creation product like Dreamweaver? If so, you need to ask your question in that forum.
Maybe you are looking for
-
MEMORY_NO_MORE_PAGING
Hi I have just installed NSP testdrive - in System:Status it says: SAP EHP 1 for SAP NetWeaver 7.0 When i try to run transaction SWO3 i get a MEMORY_NO_MORE_PAGING dump. What can I do about that? The dump: Runtime Errors MEMORY_NO_MORE_PAGING
-
HP LaserJet 1320 requires user intervention to print after Leopard
Ever since upgrading to Leopard, almost every single time I send a print job to my HP LaserJet 1320 (over the network, it actually connected to a PowerMac G5 in my office), it triggers an error warning (orange flashing light) on the printer. Pressing
-
hi, i am getting the error while loading the material with lsmw.in mm01 transaction select views are not comming while loading ,is there any other way to do it. Thanks, Rammohan.
-
Mountain Lion 10.8.2 allows for sorting of Notes by title, date created, or date edited. Does IOS 6 support sorting?
-
I cannot use links in mail and I get an Error Message telling me.....No Associated Application could be found, Any ideas?? Thanks Imac OSX 10.6.8